public CytologyWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;
            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            this.m_Writer = writer;
            this.m_CytologyUI = new CytologyUI(this.m_Writer);
            this.m_CytologyUI.AccessionChanged += new CytologyUI.AccessionChangedEventHandler(CytologyUI_AccessionChanged);

            this.m_CytologyResultsWorkspace = new CytologyResultsWorkspace(this.m_CytologyUI);
            this.m_CytologyUI.WHPOpened += CytologyUI_WHPOpened;
            this.m_CytologyUI.WHPClosed += CytologyUI_WHPClosed;

            this.m_DocumentViewer = new DocumentWorkspace();

            InitializeComponent();

            this.DataContext = this.m_CytologyUI;
            this.ContentControlDocumentViewer.Content = this.m_DocumentViewer;
            this.m_BarcodeScanPort.CytologySlideScanReceived += new YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.CytologySlideScanReceivedHandler(CytologySlideScanReceived);
            this.m_BarcodeScanPort.ThinPrepSlideScanReceived += new Business.BarcodeScanning.BarcodeScanPort.ThinPrepSlideScanReceivedHandler(BarcodeScanPort_ThinPrepSlideScanReceived);

            this.Loaded += new RoutedEventHandler(CytologyWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(CytologyWorkspace_Unloaded);

            this.ResultsGrid.Children.Add(this.m_CytologyResultsWorkspace);
            this.m_LabEventsControlTab = new LabEventsControlTab(this.m_SystemIdentity);
            this.TabControlLeft.Items.Add(this.m_LabEventsControlTab);
        }
Esempio n. 2
0
        public CytologyWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_SystemIdentity  = YellowstonePathology.Business.User.SystemIdentity.Instance;
            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            this.m_Writer     = writer;
            this.m_CytologyUI = new CytologyUI(this.m_Writer);
            this.m_CytologyUI.AccessionChanged += new CytologyUI.AccessionChangedEventHandler(CytologyUI_AccessionChanged);

            this.m_CytologyResultsWorkspace = new CytologyResultsWorkspace(this.m_CytologyUI);
            this.m_CytologyUI.WHPOpened    += CytologyUI_WHPOpened;
            this.m_CytologyUI.WHPClosed    += CytologyUI_WHPClosed;

            this.m_DocumentViewer = new DocumentWorkspace();

            InitializeComponent();

            this.DataContext = this.m_CytologyUI;
            this.ContentControlDocumentViewer.Content         = this.m_DocumentViewer;
            this.m_BarcodeScanPort.CytologySlideScanReceived += new YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.CytologySlideScanReceivedHandler(CytologySlideScanReceived);
            this.m_BarcodeScanPort.ThinPrepSlideScanReceived += new Business.BarcodeScanning.BarcodeScanPort.ThinPrepSlideScanReceivedHandler(BarcodeScanPort_ThinPrepSlideScanReceived);

            this.Loaded   += new RoutedEventHandler(CytologyWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(CytologyWorkspace_Unloaded);

            this.ResultsGrid.Children.Add(this.m_CytologyResultsWorkspace);
            this.m_LabEventsControlTab = new LabEventsControlTab(this.m_SystemIdentity);
            this.TabControlLeft.Items.Add(this.m_LabEventsControlTab);
        }