private void butnew_Click(object sender, EventArgs e) { Frmtjwhmx frm = new Frmtjwhmx(_menuTag, _chineseName, _mdiParent); Point point = new Point(160, 75); frm.Location = point; frm.MdiParent = _mdiParent; frm.Show(); frm.FillDj(Guid.Empty); }
private void dg_wh_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataTable tb = (DataTable)dg_wh.DataSource; if (tb.Rows.Count == 0) { return; } Frmtjwhmx f = new Frmtjwhmx(_menuTag, _chineseName, _mdiParent); Point point = new Point(160, 75); f.Location = point; f.Show(); f.FillDj(new Guid(tb.Rows[e.RowIndex]["id"].ToString())); }