Exemple #1
0
        private void Enroll(object sender, RoutedEventArgs e)
        {
            ScheduleWindow wi = new ScheduleWindow();

            wi.Title = "Enroll";
            wi.grdDocShedule.Visibility  = Visibility.Collapsed;
            wi.grdEnroll.Visibility      = Visibility.Visible;
            wi.btnAddSchedule.Visibility = Visibility.Hidden;
            wi.btnEnroll.Visibility      = Visibility.Visible;
            wi.ShowDialog();
        }
Exemple #2
0
        private void AddSchedule(object sender, RoutedEventArgs e)
        {
            ScheduleWindow wi = new ScheduleWindow();

            wi.Title = "Add schedule";
            wi.grdDocShedule.Visibility  = Visibility.Visible;
            wi.grdEnroll.Visibility      = Visibility.Collapsed;
            wi.btnAddSchedule.Visibility = Visibility.Visible;
            wi.btnEnroll.Visibility      = Visibility.Hidden;
            wi.ShowDialog();

            ClearSearchResults(null, null);
        }