private void ButtonClose_Click(object sender, RoutedEventArgs e) { this.m_ClientPhysicianNotSetAuditCollection.Run(); YellowstonePathology.Business.Audit.Model.DistributionNotSetAudit distributionNotSetAudit = new Business.Audit.Model.DistributionNotSetAudit(this.m_PanelSetOrder); distributionNotSetAudit.Run(); if (this.m_ClientPhysicianNotSetAuditCollection.ActionRequired == true) { MessageBox.Show("The provider for this case is not set. Are you sure you want to continue?", "Continue?", MessageBoxButton.OK); } else if (distributionNotSetAudit.ActionRequired == true) { MessageBoxResult messageBoxResult = MessageBox.Show(distributionNotSetAudit.Message.ToString() + " Are you sure you want to continue?", "Continue?", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No); if (messageBoxResult == MessageBoxResult.Yes) { if (this.Close != null) { this.Close(this.Close, new EventArgs()); } } } else { if (this.Close != null) { this.Close(this.Close, new EventArgs()); } } }
private void ButtonClose_Click(object sender, RoutedEventArgs e) { this.m_ClientPhysicianNotSetAuditCollection.Run(); YellowstonePathology.Business.Audit.Model.DistributionNotSetAudit distributionNotSetAudit = new Business.Audit.Model.DistributionNotSetAudit(this.m_PanelSetOrder); distributionNotSetAudit.Run(); if (this.m_ClientPhysicianNotSetAuditCollection.ActionRequired == true) { MessageBox.Show("The provider for this case is not set. Are you sure you want to continue?", "Continue?", MessageBoxButton.OK); } else if (distributionNotSetAudit.ActionRequired == true) { MessageBoxResult messageBoxResult = MessageBox.Show(distributionNotSetAudit.Message.ToString() + " Are you sure you want to continue?", "Continue?", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No); if (messageBoxResult == MessageBoxResult.Yes) { if (this.Close != null) this.Close(this.Close, new EventArgs()); } } else { if (this.Close != null) this.Close(this.Close, new EventArgs()); } }