Beispiel #1
0
 private void MnuInsert_Click(object sender, EventArgs e)
 {
     try
     {
         frmAnbarGroup frm = new frmAnbarGroup();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
     catch (Exception exception)
     {
         frmMessage frm = new frmMessage(EnumMessageFlag.ShowFlag, Color.Red, exception.Message);
         frm.ShowDialog();
     }
 }
Beispiel #2
0
 private void MnuView_Click(object sender, EventArgs e)
 {
     try
     {
         if (DGrid.RowCount == 0)
         {
             return;
         }
         Guid          _guid = (Guid)DGrid[dgGuid.Index, DGrid.CurrentRow.Index].Value;
         frmAnbarGroup frm   = new frmAnbarGroup(_guid, false);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
     catch (Exception exception)
     {
         frmMessage frm = new frmMessage(EnumMessageFlag.ShowFlag, Color.Red, exception.Message);
         frm.ShowDialog();
     }
 }