private void dgvMyItem_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { FrmEditItem frm = new FrmEditItem(); frm.frmItemMag = this; frm.currentItem = currSelectedItem; frm.Show(); }
private void 编辑宝贝点击ToolStripMenuItem_Click(object sender, EventArgs e) { if (currSelectedItem == null) { MessageBox.Show("没有需要编辑的宝贝"); return; } FrmEditItem frm = new FrmEditItem(); frm.frmItemMag = this; frm.currentItem = currSelectedItem; frm.Show(); }