예제 #1
0
        //Edit Course
        private void EditCourse_Click(object sender, RoutedEventArgs e)
        {
            if (AdminView.selectedCourseList != null)
            {
                CourseWindow editCourseWindow = new CourseWindow(AdminView.selectedCourseList);

                editCourseWindow.Show();
            }
            else
            {
                MessageBox.Show("You haven't selected a coruse from the dowpdown list yet!", "ERROR: Please make a selection.", MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }
예제 #2
0
        //New Course
        private void NewCourse_Click(object sender, RoutedEventArgs e)
        {
            CourseWindow newCourseWindow = new CourseWindow(new tblCours());

            newCourseWindow.Show();
        }