private void ButtonNext_Click(object sender, RoutedEventArgs e) { DataValidator dataValidator = this.CreateDataValidator(this.m_CytologyClientOrderClone); dataValidator.UpdateValidBindingSources(); YellowstonePathology.Shared.ValidationResult validationResult = dataValidator.ValidateDataTypes(); if (validationResult.IsValid == false) { MessageBox.Show(validationResult.Message); } else { validationResult = dataValidator.ValidateDomain(); if (validationResult.IsValid == false) { MessageBox.Show(validationResult.Message); } else { Shared.PageNavigationReturnEventArgs args = null; if (this.m_CytologyClientOrderClone.ScreeningType == "Diagnositic Pap" || this.m_CytologyClientOrderClone.ScreeningType == "Other") { args = new CytologyScreeningTypePageEventArgs(true, Shared.PageNavigationDirectionEnum.Next, null); } else { args = new CytologyScreeningTypePageEventArgs(false, Shared.PageNavigationDirectionEnum.Next, null); } Return(this, args); } } }
private void CytologyScreeningTypePage_Return(object sender, Shared.PageNavigationReturnEventArgs e) { CytologyScreeningTypePageEventArgs cytologyScreeningTypePageEventArgs = (CytologyScreeningTypePageEventArgs)e; switch (e.PageNavigationDirectionEnum) { case Shared.PageNavigationDirectionEnum.Next: if (cytologyScreeningTypePageEventArgs.ManualEntryOfIcd9CodeRequired == true) { this.ShowCytologyIcd9EntryPage(); } else { this.ShowCytologyClinicalHistoryPage(); } break; case Shared.PageNavigationDirectionEnum.Back: this.ShowCytologyTestOrderPage(); break; } }