示例#1
0
 protected override void tsb_Edit_Click(object sender, EventArgs e)
 {
     if (workersDataGridView.RowCount > 0)
     {
         try
         {
             frm_EditWorkers frm_editworkers = new frm_EditWorkers((int)workersDataGridView.SelectedRows[0].Cells[0].Value,
                 "EDIT");
             if (frm_editworkers.ShowDialog() == DialogResult.OK)
                 this.SetProperties();
         }
         catch { }
     }
 }
示例#2
0
 protected override void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
 {
     frm_EditWorkers frm_editworkers = new frm_EditWorkers(0, "INS");
     frm_editworkers.ShowDialog();
     this.SetProperties();
 }