private void ButtonOK_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.Rules.Cytology.SetReportComment setReportComment = new YellowstonePathology.Business.Rules.Cytology.SetReportComment(); YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new YellowstonePathology.Business.Rules.ExecutionStatus(); foreach (YellowstonePathology.Business.Domain.Cytology.CytologyReportComment reportComment in this.ListViewReportComment.SelectedItems) { setReportComment.Execute(reportComment.Comment, this.m_CytologyPanelOrder, executionStatus); } if (executionStatus.Halted == true) { System.Windows.MessageBox.Show(executionStatus.ExecutionMessagesString); } else { this.ListViewReportComment.SelectedItems.Clear(); this.StackPanelListAndButtons.Visibility = System.Windows.Visibility.Collapsed; this.ReportCommentVisibility = System.Windows.Visibility.Collapsed; } }
public void SetReportComment(string comment, YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology selectedPanelOrder, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { YellowstonePathology.Business.Rules.Cytology.SetReportComment setReportComment = new YellowstonePathology.Business.Rules.Cytology.SetReportComment(); setReportComment.Execute(comment, selectedPanelOrder, executionStatus); }
private void ButtonOK_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.Rules.Cytology.SetReportComment setReportComment = new YellowstonePathology.Business.Rules.Cytology.SetReportComment(); YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new YellowstonePathology.Business.Rules.ExecutionStatus(); foreach (YellowstonePathology.Business.Domain.Cytology.CytologyReportComment reportComment in this.ListViewReportComment.SelectedItems) { setReportComment.Execute(reportComment.Comment, this.m_CytologyPanelOrder, executionStatus); } if (executionStatus.Halted == true) { System.Windows.MessageBox.Show(executionStatus.ExecutionMessagesString); } else { this.ListViewReportComment.SelectedItems.Clear(); this.StackPanelListAndButtons.Visibility = System.Windows.Visibility.Collapsed; this.ReportCommentVisibility = System.Windows.Visibility.Collapsed; } }
public void SetReportComment(string comment, YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology selectedPanelOrder, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus) { YellowstonePathology.Business.Rules.Cytology.SetReportComment setReportComment = new YellowstonePathology.Business.Rules.Cytology.SetReportComment(); setReportComment.Execute(comment, selectedPanelOrder, executionStatus); }