public void Init() { createExamViewModel = new CreateExamViewModel(); createExamViewModel.GetCourses(); createExamViewModel.GetClasses(); createExamViewModel.GetQuestions(); ExamTypeDropDown.ItemsSource = Enum.GetValues(typeof(ExamType)); }
private void CheckQuestion_Click(object sender, RoutedEventArgs e) { if (CheckQuestion.IsChecked == true) { createExamViewModel.ListOfQuestions.Clear(); createExamViewModel.GetTemplateQuestions(); } else { createExamViewModel.ListOfQuestions.Clear(); createExamViewModel.GetQuestions(); } }