Beispiel #1
0
        private void btnNewConfine_Click(object sender, EventArgs e)
        {
            frmAddEditConfinedRecord frm = new frmAddEditConfinedRecord(null, MethodType.Add);

            frm.ShowDialog();
            ucConfinementGrid1.Reload();
        }
Beispiel #2
0
 private void simpleButton2_Click(object sender, EventArgs e)
 {
     if (ucConfinementGrid1.ConfinedmentGrid.GetFocusedRow() is ConfinementRecords item)
     {
         frmAddEditConfinedRecord frm = new frmAddEditConfinedRecord(item, MethodType.Edit);
         frm.ShowDialog();
         ucConfinementGrid1.Reload();
     }
 }