private void HyperLinkShowDocument_Click(object sender, RoutedEventArgs e)
 {
     if (this.m_PanelSetOrder.PanelOrderCollection.GetUnacceptedPanelCount() == 0)
     {
         YellowstonePathology.Business.Test.KRASStandard.KRASStandardWordDocument report = new YellowstonePathology.Business.Test.KRASStandard.KRASStandardWordDocument(this.m_AccessionOrder, this.m_PanelSetOrder, Business.Document.ReportSaveModeEnum.Draft);
         report.Render();
         YellowstonePathology.Business.Document.CaseDocument.OpenWordDocumentWithWord(report.SaveFileName);
     }
     else
     {
         MessageBox.Show("The results must be accepted before the document can be viewed.", "Accept then view");
     }
 }
        private void HyperLinkShowDocument_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_PanelSetOrder.PanelOrderCollection.GetUnacceptedPanelCount() == 0)
            {
                YellowstonePathology.Business.Test.KRASStandard.KRASStandardWordDocument report = new YellowstonePathology.Business.Test.KRASStandard.KRASStandardWordDocument(this.m_AccessionOrder, this.m_PanelSetOrder, Business.Document.ReportSaveModeEnum.Draft);
                report.Render();

                YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
                string fileName = YellowstonePathology.Business.Document.CaseDocument.GetDraftDocumentFilePath(orderIdParser);
                YellowstonePathology.Business.Document.CaseDocument.OpenWordDocumentWithWordViewer(fileName);
            }
            else
            {
                MessageBox.Show("The results must be accepted before the document can be viewed.", "Accept then view");
            }
        }