private void Consecutive_Session_Page_loaded(object sender, RoutedEventArgs e) { consecutiveSessionViewModel = new ConsecutiveSessionViewModel(); sessionViewModel = new SessionViewModel(); consecutive_session1_combobx.ItemsSource = sessionViewModel.LoadSessionData(); consecutive_session2_combobx.ItemsSource = sessionViewModel.LoadSessionData(); consecutiveSessions = consecutiveSessionViewModel.LoadConsecutiveSessionData(); }
private void create_btn__Click(object sender, RoutedEventArgs e) { session = CreateSessionEntity(); _sessionViewModel.SaveSessionData(session); sessions = _sessionViewModel.LoadSessionData(); SetDataGrid(); ClearAll(); count_req_tb.Visibility = Visibility.Hidden; }
private void Parallel_Session_Page_loaded(object sender, RoutedEventArgs e) { parallelSessionViewModel = new ParallelSessionViewModel(); sessionViewModel = new SessionViewModel(); session1_combobx.ItemsSource = sessionViewModel.LoadSessionData(); session2_combobx.ItemsSource = sessionViewModel.LoadSessionData(); parallelSessions = parallelSessionViewModel.LoadParallelSessionData(); }
private void Page_Loaded(object sender, RoutedEventArgs e) { _prefferedRoomForSessionViewModel = new PrefferedRoomForSessionViewModel(); _sessionViewModel = new SessionViewModel(); session_combobx.ItemsSource = _sessionViewModel.LoadSessionData(); prefferedRoomForSessions = _prefferedRoomForSessionViewModel.LoadData(); }
private void Session_NA_Page_loaded(object sender, RoutedEventArgs e) { sessionNAViewModel = new SessionNAViewModel(); sessionViewModel = new SessionViewModel(); session_combobx.ItemsSource = sessionViewModel.LoadSessionData(); sessionNAs = sessionNAViewModel.LoadSessionNAData(); }
private void Session_Page_Loaded(object sender, RoutedEventArgs e) { _lecturerViewModel = new LecturerViewModel(); _subjectViewModel = new SubjectViewModel(); _tagViewModel = new TagViewModel(); _sessionViewModel = new SessionViewModel(); _Student_GroupViewModel = new Student_GroupViewModel(); _Student_SubGroupViewModel = new Student_SubGroupViewModel(); lecturers = _lecturerViewModel.LoadLecturerData(); lecturer_combobx.ItemsSource = lecturers; code_combobx.ItemsSource = _subjectViewModel.LoadSubjectData(); tag_combobx.ItemsSource = _tagViewModel.LoadTagData(); sessions = _sessionViewModel.LoadSessionData(); //grp_combobx.ItemsSource = _Student_GroupViewModel.LoadStudentData(); //session_data_grid.ItemsSource = sessions; SetDataGrid(); create_btn_.IsEnabled = false; }