Пример #1
0
 private void cmdSave_Click(object sender, EventArgs e)
 {
     try
     {
         var obj = new frmDataControlList_AU();
         obj.dtDataControl = dtDataControl;
         obj.vAction       = action.Insert;
         obj.ShowDialog();
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }
Пример #2
0
 private void cmdUpdate_Click(object sender, EventArgs e)
 {
     try
     {
         if (grdDataControl.CurrentRow == null || grdDataControl.CurrentRow.RowType != RowType.Record)
         {
             return;
         }
         else
         {
             var obj = new frmDataControlList_AU();
             obj.dtDataControl = dtDataControl;
             obj.vAction       = action.Update;
             obj.drData        = Utility.GetDataRow(dtDataControl, DDataControl.Columns.DataControlId, grdDataControl.GetValue("DataControl_ID"));
             obj.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }
Пример #3
0
 private void cmdUpdate_Click(object sender, EventArgs e)
 {
     try
     {
         if (grdDataControl.CurrentRow == null || grdDataControl.CurrentRow.RowType != RowType.Record) return;
         else
         {
             var obj = new frmDataControlList_AU();
             obj.dtDataControl = dtDataControl;
             obj.vAction = action.Update;
             obj.drData = Utility.GetDataRow(dtDataControl, DDataControl.Columns.DataControlId, grdDataControl.GetValue("DataControl_ID"));
             obj.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }
Пример #4
0
 private void cmdSave_Click(object sender, EventArgs e)
 {
     try
     {
         var obj = new frmDataControlList_AU();
         obj.dtDataControl= dtDataControl;
         obj.vAction = action.Insert;
         obj.ShowDialog();
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }