Esempio n. 1
0
 private void btn_add_Click(object sender, EventArgs e)
 {
     SettingForm.RegisterUserForm.AddRegisterUser frm = new SettingForm.RegisterUserForm.AddRegisterUser();
     if (frm.ShowDialog() == DialogResult.OK)
     {
         searchdata(ref dgv_registeruser, true);
     }
 }
Esempio n. 2
0
 private void btn_edit_Click(object sender, EventArgs e)
 {
     SettingForm.RegisterUserForm.AddRegisterUser frm = new SettingForm.RegisterUserForm.AddRegisterUser();
     Class.valiballecommon va = Class.valiballecommon.GetStorage();
     va.value1 = dgv_registeruser.Rows[dgv_registeruser.SelectedCells[0].RowIndex].Cells[1].Value.ToString();
     va.value2 = dgv_registeruser.Rows[dgv_registeruser.SelectedCells[0].RowIndex].Cells[2].Value.ToString();
     va.value3 = dgv_registeruser.Rows[dgv_registeruser.SelectedCells[0].RowIndex].Cells[3].Value.ToString();
     if (frm.ShowDialog() == DialogResult.OK)
     {
         searchdata(ref dgv_registeruser, true);
     }
 }