public QnAViewModel(Model.QnAModel qModel) { this.QnAModel = qModel; this.Command_CheckAnswer = new DelegateCommand(x => this.Execute_CheckAnswer()); this.Command_SkipAnswer = new DelegateCommand(x => this.Execute_SkipAnswer()); this.Command_NextCard = new DelegateCommand(x => this.Execute_NextCard()); this.LastAnswer = "None"; this.GenerateFullCard(); }
private void Execute_LoadCardPack() { View.LoadCardPackDialog newDialog = new View.LoadCardPackDialog(); LoadCardPackDiagViewModel diagVM = new LoadCardPackDiagViewModel(newDialog); newDialog.DataContext = diagVM; if (newDialog.ShowDialog() == true) { { this.QnAModel = new Model.QnAModel(diagVM.GetSelectedItem()); } } this.OnPropertyChanged("ActiveCardPack"); }