public UpdateScore(UpdateStdntScores updateStdntScores)
 {
     this.updateStdntScores = updateStdntScores;
     InitializeComponent();
     this.ControlBox = false;
     score.Text      = updateStdntScores.tempStdtScore[updateStdntScores.scoresBox.SelectedIndex].ToString();
 }
 // Launch update for selected student
 private void update_Click(object sender, EventArgs e)
 {
     // -1 is no selection in listbox
     if (stdtBox.SelectedIndex == -1)
     {
         MessageBox.Show("Please select an item to modify", "Notice");
         return;
     }
     else
     {
         using (var update = new UpdateStdntScores(this))
         {
             update.ShowDialog();
         }
     }
 }
Example #3
0
 public AddScore(UpdateStdntScores updateStdntScores)
 {
     this.updateStdntScores = updateStdntScores;
     InitializeComponent();
     this.ControlBox = false;
 }