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