private void toolStripButton1_Click(object sender, EventArgs e)
        {
            FrmtAddDetails fs = new FrmtAddDetails();

            Common.fm = this;//设置为公共窗体
            fs.ShowDialog();
        }
示例#2
0
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.SelectedRows.Count <= 0)
            {
                MessageBox.Show("请先选择要修改的一行数据");
                return;
            }
            string         id = this.dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            FrmtAddDetails fs = new FrmtAddDetails();

            fs.uid    = id;
            Common.sd = this;
            fs.Show();
        }