public SelectTestSectionPage(TestSectionViewModel vm = null) { InitializeComponent(); viewModel = vm; BindingContext = viewModel; }
async Task ExecuteContinueCommand() { if (string.IsNullOrWhiteSpace(CertificationQuestion.SelectedItem?.Text) || string.IsNullOrWhiteSpace(CanineEquipmentQuestion.SelectedItem?.Text) || string.IsNullOrWhiteSpace(PracticeLabQuestion.SelectedItem?.Text) || string.IsNullOrWhiteSpace(HandlerName.Text) || string.IsNullOrWhiteSpace(CanineName.Text) || string.IsNullOrWhiteSpace(ScoringExaminer.Text) || string.IsNullOrWhiteSpace(HandsOnExaminer.Text) || string.IsNullOrWhiteSpace(Date.Text)) { await Page.DisplayAlert("Unanswered Question", $"Please answer all the questions.", "OK"); return; } var vm = new TestSectionViewModel(Page, TestObject); await Page.Navigation.PushAsync(new SelectTestSectionPage(vm)); }
public SelectTestSectionPage() { InitializeComponent(); BindingContext = viewModel = new TestSectionViewModel(); }