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