Пример #1
0
 private void toolStripMenuItem6_Click(object sender, EventArgs e)
 {
     try
     {
         int row = dataGridView2.SelectedRows[0].Index;
         ModuleForm moduleForm = new ModuleForm(student.Levels[1].Modules.ElementAt(row), LevelType.Level5, this);
         moduleForm.ShowDialog();
     }
     catch (ArgumentOutOfRangeException ex)
     {
         MessageBox.Show("Select a row to edit details");
     }
 }
Пример #2
0
 private void toolStripMenuItem9_Click(object sender, EventArgs e)
 {
     try
     {
         ModuleForm moduleForm = new ModuleForm(student, LevelType.Level6, this);
         moduleForm.ShowDialog();
     }
     catch (ArgumentOutOfRangeException ex)
     {
         MessageBox.Show("Select a row to edit details");
     }
 }
Пример #3
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     ModuleForm moduleForm = new ModuleForm(student, LevelType.Level4, this);
     moduleForm.ShowDialog();
 }