コード例 #1
0
        private void dgvMyItem_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            FrmEditItem frm = new FrmEditItem();

            frm.frmItemMag  = this;
            frm.currentItem = currSelectedItem;
            frm.Show();
        }
コード例 #2
0
        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();
        }