Ejemplo n.º 1
0
        //New student
        private void btnNewStudent_Click(object sender, RoutedEventArgs e)
        {
            PeopleView newStudent = new PeopleView(new tblStudent(), AdminView.NewestStudent);

            newStudent.Show();
            listStudent.ItemsSource = AdminView.getStudentsInClass();
        }
Ejemplo n.º 2
0
 //Edit Student
 private void btnEditStudent_Click(object sender, RoutedEventArgs e)
 {
     if (AdminView.selectedStudentList != null)
     {
         PeopleView editStudent = new PeopleView(AdminView.selectedStudentList);
         editStudent.Show();
     }
     else
     {
         MessageBox.Show("You haven't selected a student from the dowpdown list yet!", "ERROR: Please make a selection.", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }