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(); } } }
public AddScore(UpdateStdntScores updateStdntScores) { this.updateStdntScores = updateStdntScores; InitializeComponent(); this.ControlBox = false; }