Esempio n. 1
0
 private void MnuInsert_Click(object sender, EventArgs e)
 {
     try
     {
         frmHazine frm = new frmHazine();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
     catch (Exception exception)
     {
         frmMessage f = new frmMessage(EnumMessageFlag.ShowFlag, Color.Red, exception.Message);
         f.ShowDialog();
     }
 }
Esempio n. 2
0
 private void MnuEdit_Click(object sender, EventArgs e)
 {
     try
     {
         if (DGrid.RowCount == 0)
         {
             return;
         }
         Guid      _hazineGuid = (Guid)DGrid[dgGuid.Index, DGrid.CurrentRow.Index].Value;
         frmHazine frm         = new frmHazine(_hazineGuid, true);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
     catch (Exception exception)
     {
         frmMessage f = new frmMessage(EnumMessageFlag.ShowFlag, Color.Red, exception.Message);
         f.ShowDialog();
     }
 }