Example #1
0
 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;
     //}
 }
Example #2
0
 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();
     }
 }
Example #3
0
        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();
        }