예제 #1
0
 public Admin()
 {
     InitializeComponent();
     viewModel        = new ProfViewModel();
     this.DataContext = viewModel;
     //Populate comboboxes with Generics
     SetDepartmentValues();
     AddDepartments();
 }
예제 #2
0
        public Rate()
        {
            InitializeComponent();
            viewModel            = new ProfViewModel();
            rateData.ItemsSource = viewModel.DisplayProfessors(); //Calling view model

            //Setting all combo boxes
            PopulateGrades();
            SetDepartmentValues(); //Generic array
            PopulateDept();
        }
예제 #3
0
        public Browse()
        {
            InitializeComponent();
            viewModel        = new ProfViewModel();
            this.DataContext = viewModel;

            //Calling viewmodel and appending data to datagrid in view
            browseData.ItemsSource = viewModel.DisplayProfessors();
            //Setting and populating combobox from generic array
            SetDepartmentValues();
            PopulateComboBox();
        }