Exemple #1
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            //调用窗体
            FrmFjEdit frm = new FrmFjEdit();

            frm.ShowDialog();
            initDg();
        }
Exemple #2
0
        private void btnDel_Click(object sender, EventArgs e)
        {
            //调用窗体
            if (this.dataGridView1.SelectedRows.Count <= 0)
            {
                return;
            }
            FrmFjEdit frm = new FrmFjEdit();

            frm.ID = this.dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            frm.ShowDialog();
            initDg();
        }