Example #1
0
        private void BT_Add_Click(object sender, EventArgs e)
        {
            Edit_User frm = new Edit_User();

            frm.ShowDialog();
            Frm_User_Load(this, null);
        }
Example #2
0
        private void BT_Edit_Click(object sender, EventArgs e)
        {
            if (gv.RowCount == 0)
            {
                MessageBox.Show("没有可编辑项");
                return;
            }
            string    Name = gv.GetFocusedRowCellValue("USER").ToString();
            Edit_User frm  = new Edit_User(Name);

            frm.ShowDialog();
            Frm_User_Load(this, null);
        }
Example #3
0
 private void BT_Add_Click(object sender, EventArgs e)
 {
     Edit_User frm = new Edit_User();
     frm.ShowDialog();
     Frm_User_Load(this, null);
 }
Example #4
0
 private void BT_Edit_Click(object sender, EventArgs e)
 {
     if (gv.RowCount==0)
     {
         MessageBox.Show("没有可编辑项");
         return;
     }
     string Name = gv.GetFocusedRowCellValue("USER").ToString();
     Edit_User frm = new Edit_User(Name);
     frm.ShowDialog();
     Frm_User_Load(this, null);
 }