Esempio n. 1
0
 protected override void tsb_Edit_Click(object sender, EventArgs e)
 {
     if (usersDataGridView.RowCount > 0)
     {
         try
         {
             frm_EditUsers frm_edittusers = new frm_EditUsers((int)usersDataGridView.SelectedRows[0].Cells[0].Value,
                 "EDIT");
             if (frm_edittusers.ShowDialog() == DialogResult.OK)
                 this.SetProperties();
         }
         catch { }
     }
 }
Esempio n. 2
0
 protected override void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
 {
     frm_EditUsers frm_edittusers = new frm_EditUsers(0, "INS");
     frm_edittusers.ShowDialog();
     this.SetProperties();
 }