Beispiel #1
0
 private void EditData(DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         sp_MAS102_GetDivision_Result row = gvResult.Rows[e.RowIndex].DataBoundItem as sp_MAS102_GetDivision_Result;
         using (MAS102_DivisionEntry dlg = new MAS102_DivisionEntry(row))
         {
             if (dlg.ShowDialog(this) == DialogResult.OK)
             {
                 LoadData();
             }
         }
     }
 }
Beispiel #2
0
 private void AddNew()
 {
     try
     {
         using (MAS102_DivisionEntry dlg = new MAS102_DivisionEntry())
         {
             if (dlg.ShowDialog(this) == DialogResult.OK)
             {
                 LoadData();
             }
         }
     }
     catch (Exception ex)
     {
         rMessageBox.ShowException(this, ex);
     }
 }