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