public MultipleQuizViewModel(MainViewModel mvm) { this.vis = "Hidden"; this.visW = "Hidden"; this.mvm = mvm; this.Quiz = mvm.model.GenerateQuiz() as MultipleQuiz; string[] words = Quiz.AllAnswers; text = Quiz.word.Wordstring; ans1 = words[0]; ans2 = words[1]; ans3 = words[2]; ans4 = words[3]; ans5 = words[4]; Ans1Command = new RelayCommand(Answer1); Ans2Command = new RelayCommand(Answer2); Ans3Command = new RelayCommand(Answer3); Ans4Command = new RelayCommand(Answer4); Ans5Command = new RelayCommand(Answer5); NewQuizCommand = new RelayCommand(NewQuiz, CanNewQuiz); }
public PdfArchiveWindow(MainViewModel mvm) { InitializeComponent(); this.DataContext = new PdfArchiveViewModel(mvm); }
public PdfArchiveViewModel(MainViewModel mvm) { this.mvm = mvm; DeletePdfCommand = new RelayCommand(DeletePdf, CanDeletePdf); }
public MultipleQuizWindow(MainViewModel mvm) { InitializeComponent(); vmQuiz = new MultipleQuizViewModel(mvm); this.DataContext = vmQuiz; }