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