Ejemplo n.º 1
0
 private void button5_Click(object sender, EventArgs e)
 {
     if (pitt.getCourseByID(int.Parse(nametext.Text)) == null)
     {
         MessageBox.Show("This Action was not Perfromed because The Course ID You entered Did Not Exist...");
     }
     pitt.signStudent(int.Parse(nametext.Text), int.Parse(bunifuMaterialTextbox5.Text));
     MessageBox.Show("Student is Succesfully Added");
 }
Ejemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            var a = pitt.getCourseByID(int.Parse(nametext.Text));

            if (a == null)//||(((pitt.getCourseByID(courseID)).myStudents).contains(pitt.getStudentByID(studenID)))==false)
            {
                MessageBox.Show("Course not Found...");
            }
            else
            {
                bunifuMaterialTextbox1.Text = a.getCoName();
                bunifuMaterialTextbox2.Text = a.getMaxStu().ToString();
                bunifuMaterialTextbox5.Text = a.remSeats().ToString();
                bunifuMaterialTextbox4.Text = a.getClassAverage().ToString();
            }
        }