private void ComboBoxResult_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.ComboBoxResult.SelectedItem != null) { YellowstonePathology.Business.Test.TestResult testResult = (YellowstonePathology.Business.Test.TestResult) this.ComboBoxResult.SelectedItem; this.m_PanelSetOrder.ResultCode = testResult.ResultCode; } }
public object[] ConvertBack(object values, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture) { if (values != null) { YellowstonePathology.Business.Test.TestResult testResult = (YellowstonePathology.Business.Test.TestResult)values; object[] display = new string[2]; display[0] = testResult.Result; display[1] = testResult.ResultCode; return(display); } return(null); }
private void HyperLinkSetResults_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrder.IsOkToSetResults(); if (methodResult.Success == true) { if (this.ComboBoxResult.SelectedItem != null) { YellowstonePathology.Business.Test.TestResult testResult = (YellowstonePathology.Business.Test.TestResult) this.ComboBoxResult.SelectedItem; YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FResult result = (YellowstonePathology.Business.Test.JAK2V617F.JAK2V617FResult)testResult; result.SetResults(this.m_PanelSetOrder); } else { MessageBox.Show("A result must be Selected before results can be set."); } } else { MessageBox.Show(methodResult.Message); } }
private void ComboBoxResult_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.ComboBoxResult.SelectedItem != null) { YellowstonePathology.Business.Test.TestResult testResult = (YellowstonePathology.Business.Test.TestResult) this.ComboBoxResult.SelectedItem; this.m_HPVTestOrder.ResultCode = testResult.ResultCode; if (testResult.Result == "Negative") { if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(15) == true) { Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPAP(); if (PanelSetOrder.Final == true) { if (panelSetOrder.ResultCode.Substring(0, 2) == "52") { this.m_HPVTestOrder.Comment = Business.Test.HPV.HPVResult.UnsatSpecimenComment; } } } } } }