private void btnUpdate_Click(object sender, System.EventArgs e) { Form updateStudentScores = new frmUpdateStudentScores(); DialogResult selectedButton = updateStudentScores.ShowDialog(); //if (selectedButton == DialogResult.OK) //{ // lblPaymentBox.Text = (string)paymentForm.Tag; //} }
private void btnAddNew_Click(object sender, System.EventArgs e) { Form updateStudentScores = new frmUpdateStudentScores(); DialogResult selectedButton = updateStudentScores.ShowDialog(); if (selectedButton == DialogResult.OK) { studentList.Add((string)updateStudentScores.Tag); refreshListBox(); } }
private void btnUpdate_Click(object sender, EventArgs e) { Form UpdateScores = new frmUpdateStudentScores(); selectedEntry = listBoxStudents.SelectedIndex; if (listBoxStudents.Items.Count > 0) { UpdateScores.ShowDialog(); } listBoxStudents.Items.Clear(); AddToListbox(); }