private void ButtonResults_Click(object sender, RoutedEventArgs e) { int panelSetid = this.PanelSetOrder.PanelSetId; this.m_ResultDialog = new Test.ResultDialog(); YellowstonePathology.UI.Test.ResultPathFactory resultPathFactory = new Test.ResultPathFactory(); resultPathFactory.Finished += new Test.ResultPathFactory.FinishedEventHandler(ResultPathFactory_Finished); bool resultPathStarted = resultPathFactory.Start(this.m_PathologistUI.PanelSetOrder, this.m_PathologistUI.AccessionOrder, this.m_ResultDialog.PageNavigator, this.m_ResultDialog, System.Windows.Visibility.Collapsed); if (resultPathStarted == false) { string msg = "Results not yet implemented for " + this.PanelSetOrder.PanelSetName; MessageBox.Show(msg, "Under Construction"); } else { this.m_ResultDialog.ShowDialog(); } }
private void ButtonResults_Click(object sender, RoutedEventArgs e) { this.m_ResultDialog = new ResultDialog(); YellowstonePathology.UI.Test.ResultPathFactory resultPathFactory = new Test.ResultPathFactory(); resultPathFactory.Finished += new Test.ResultPathFactory.FinishedEventHandler(ResultPathFactory_Finished); bool started = resultPathFactory.Start(this.m_LabUI.PanelSetOrder, this.m_LabUI.AccessionOrder, this.m_ResultDialog.PageNavigator, this.m_ResultDialog, System.Windows.Visibility.Collapsed); if (started == true) { this.m_ResultDialog.ShowDialog(); } else { MessageBox.Show("The result for this case is not available in this view."); } }