private void dGridMain_DoubleClick(object sender, EventArgs e) { if (dGridMain.CurrentRowIndex < 0) { return; } int iAutoID; try { iAutoID = int.Parse(prods.ProDelivery.Rows[dGridMain.CurrentRowIndex]["AutoID"].ToString()); } catch (Exception ex) { MessageBox.Show(@"数据异常" + ex.Message, @"Warning"); return; } var outWareHouse = new ProDelivery(prods.ProDelivery.Rows[dGridMain.CurrentRowIndex]["cCode"].ToString(), iAutoID); outWareHouse.ShowDialog(); Close(); }
private void dGridMain_DoubleClick(object sender, EventArgs e) { if (dGridMain.CurrentRowIndex < 0) return; int iAutoID; try { iAutoID=int.Parse(prods.ProDelivery.Rows[dGridMain.CurrentRowIndex]["AutoID"].ToString()); } catch (Exception ex) { MessageBox.Show(@"数据异常"+ex.Message, @"Warning"); return; } var outWareHouse = new ProDelivery(prods.ProDelivery.Rows[dGridMain.CurrentRowIndex]["cCode"].ToString(), iAutoID); outWareHouse.ShowDialog(); Close(); }