Ejemplo n.º 1
0
        public Majors()
        {
            InitializeComponent();
            if (Instance == null)
            {
                Instance = this;
            }

            Year1Controls = new List <CourseControl>();
            Year2Controls = new List <CourseControl>();
            Year3Controls = new List <CourseControl>();

            GetCourses();
            GetMajors();
            SetCourses();
            RedrawCourses();

            CourseHandler.SetPrereq();
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            if (Instance == null)
            {
                Instance = this;
            }

            _loginControl = new LoginControl();
            _mainControl  = new Majors();
            MajorsControl = new MajorsControl();
            adminWindow   = new AdminWindow();

            _loginControl.Visibility = Visibility.Visible;
            _mainControl.Visibility  = Visibility.Hidden;
            MajorsControl.Visibility = Visibility.Hidden;
            adminWindow.Visibility   = Visibility.Hidden;

            MainGrid.Children.Add(_loginControl);
            MainGrid.Children.Add(_mainControl);
            MainGrid.Children.Add(MajorsControl);
            MainGrid.Children.Add(adminWindow);
        }