public TentativeSchedule(List <Semester> semesters, CompletedClasses prevPage, YAMLLoader passedLoader)
 {
     InitializeComponent();
     this.loader       = passedLoader;
     this.semesterList = semesters;
     completedClasses  = prevPage;
 }
Ejemplo n.º 2
0
        public void onSubmit(object sender, RoutedEventArgs e)
        {
            int majorIndex = -1;
            int coreIndex  = 1;

            if (chkHonors.IsChecked == true)
            {
                coreIndex = 2;
            }
            majorIndex = getMajorIndex();
            bool             isFall       = (bool)Fall.IsChecked;
            int              numSemesters = Int32.Parse(((ComboBoxItem)ddlSemesters.SelectedItem).Content.ToString());
            int              maxCredits   = Int32.Parse(((ComboBoxItem)ddlMaxCredits.SelectedItem).Content.ToString());
            int              minCredits   = Int32.Parse(((ComboBoxItem)ddlMinCredits.SelectedItem).Content.ToString());
            CompletedClasses window       = new CompletedClasses(majorIndex, coreIndex, isFall, numSemesters, maxCredits, minCredits);

            this.NavigationService.Navigate(window);
        }
        private void ccButtonClick(object sender, RoutedEventArgs e)
        {
            CompletedClasses window = completedClasses;

            this.NavigationService.Navigate(window);
        }