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