Ejemplo n.º 1
0
        public TypingWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, PageNavigationWindow secondMonitorWindow, System.Windows.Controls.TabItem writer)
        {
            this.m_Writer = writer;
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_SecondMonitorWindow = secondMonitorWindow;
            if (secondMonitorWindow != null)
            {
                this.m_SecondMonitorWindow.WindowState = WindowState.Maximized;
            }

            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            this.m_TypingUI = new YellowstonePathology.Business.Typing.TypingUIV2(this.m_Writer);
            this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, string.Empty, this.m_TypingUI.AccessionOrder);
            this.m_DocumentViewer = new DocumentWorkspace();

            this.m_LocalDictationList = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Local);
            this.m_ServerDictationList = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Server);

            InitializeComponent();

            this.m_TypingShortcutUserControl = new TypingShortcutUserControl(this.m_SystemIdentity, this.m_Writer);
            this.TabItemTypingShortCuts.Content = this.m_TypingShortcutUserControl;

            this.DataContext = this.m_TypingUI;
            this.ContentControlDocument.Content = this.m_DocumentViewer;

            this.ListViewLocalDictation.ItemsSource = this.m_LocalDictationList;
            this.ListViewServerDictation.ItemsSource = this.m_ServerDictationList;

            this.Unloaded += new RoutedEventHandler(TypingWorkspace_Unloaded);
        }
Ejemplo 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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        public LabWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_Writer = writer;
            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            this.m_LabUI = new LabUI(this.m_SystemIdentity, writer);

            this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, string.Empty, this.m_LabUI.AccessionOrder);
            this.m_DocumentViewer = new DocumentWorkspace();
            this.m_TreeViewWorkspace = new YellowstonePathology.UI.Common.TreeViewWorkspace(this.m_LabUI.AccessionOrder, this.m_SystemIdentity);

            InitializeComponent();

            this.TabItemDocumentWorkspace.Content = this.m_DocumentViewer;

            this.DataContext = this.m_LabUI;

            this.ComboBoxLogLocation.SelectionChanged -= this.ComboBoxLogLocation_SelectionChanged;
            this.ComboBoxLogLocation.SelectedIndex = 0;
            this.ComboBoxLogLocation.SelectionChanged += this.ComboBoxLogLocation_SelectionChanged;

            this.Loaded +=new RoutedEventHandler(LabWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(LabWorkspace_Unloaded);

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            this.m_ScanLogger = new YellowstonePathology.Business.Logging.ScanLogger(this.m_SystemIdentity);
            this.m_ScanLogger.Start();
            this.ListViewDocumentList.ItemsSource = this.m_LabUI.CaseDocumentCollection;
        }
Ejemplo n.º 5
0
        public LabWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_Writer = writer;
            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            this.CommandBindingApplicationClosing = new CommandBinding(MainWindow.ApplicationClosingCommand, CloseWorkspace);
            this.CommandBindingShowCaseDocument = new CommandBinding(MainWindow.ShowCaseDocumentCommand, ShowCaseDocument);
            this.CommandBindingShowOrderForm = new CommandBinding(MainWindow.ShowOrderFormCommand, this.ShowOrderForm, ItemIsSelected);
            this.CommandBindingPatientLinking = new CommandBinding(MainWindow.PatientLinkingCommand, this.LinkPatient, ItemIsSelected);
            this.CommandBindingRemoveTab = new CommandBinding(MainWindow.RemoveTabCommand, RemoveTab);
            this.CommandBindingShowPatientEditDialog = new CommandBinding(MainWindow.ShowPatientEditDialogCommand, this.ShowPatientEditDialog);

            this.CommandBindings.Add(this.CommandBindingApplicationClosing);
            this.CommandBindings.Add(this.CommandBindingShowCaseDocument);
            this.CommandBindings.Add(this.CommandBindingShowOrderForm);
            this.CommandBindings.Add(this.CommandBindingPatientLinking);
            this.CommandBindings.Add(this.CommandBindingRemoveTab);
            this.CommandBindings.Add(this.CommandBindingShowPatientEditDialog);

            this.m_LabUI = new LabUI(this.m_SystemIdentity, writer);

            this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, string.Empty, this.m_LabUI.AccessionOrder);
            this.m_DocumentViewer = new DocumentWorkspace();
            this.m_TreeViewWorkspace = new YellowstonePathology.UI.Common.TreeViewWorkspace(this.m_LabUI.AccessionOrder, this.m_SystemIdentity);

            InitializeComponent();

            this.TabItemDocumentWorkspace.Content = this.m_DocumentViewer;

            this.DataContext = this.m_LabUI;

            this.ComboBoxLogLocation.SelectionChanged -= this.ComboBoxLogLocation_SelectionChanged;
            this.ComboBoxLogLocation.SelectedIndex = 0;
            this.ComboBoxLogLocation.SelectionChanged += this.ComboBoxLogLocation_SelectionChanged;

            this.Loaded +=new RoutedEventHandler(LabWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(LabWorkspace_Unloaded);

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            this.m_ScanLogger = new YellowstonePathology.Business.Logging.ScanLogger(this.m_SystemIdentity);
            this.m_ScanLogger.Start();
            this.ListViewDocumentList.ItemsSource = this.m_LabUI.CaseDocumentCollection;
        }
Ejemplo n.º 6
0
        public LoginWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_LoadedHasRun = false;
            this.m_Writer = writer;

            this.m_LoginUI = new LoginUIV2(this.m_Writer);
            this.m_DocumentViewer = new DocumentWorkspace();

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            InitializeComponent();

            this.TabItemDocumentWorkspace.Content = this.m_DocumentViewer;
            this.DataContext = this.m_LoginUI;

            this.Loaded += new RoutedEventHandler(LoginWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(LoginWorkspace_Unloaded);
        }
Ejemplo n.º 7
0
        public TypingWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, PageNavigationWindow secondMonitorWindow, System.Windows.Controls.TabItem writer)
        {
            this.m_Writer = writer;
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_SecondMonitorWindow            = secondMonitorWindow;
            if (secondMonitorWindow != null)
            {
                this.m_SecondMonitorWindow.WindowState = WindowState.Maximized;
            }

            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            this.CommandBindingClose               = new CommandBinding(MainWindow.ApplicationClosingCommand, HandleAppClosing);
            this.CommandBindingShowCaseDocument    = new CommandBinding(MainWindow.ShowCaseDocumentCommand, ShowCaseDocument, ItemIsPresent);
            this.CommandBindingShowOrderForm       = new CommandBinding(MainWindow.ShowOrderFormCommand, this.ShowOrderForm, ItemIsSelected);
            this.CommandBindingShowAmendmentDialog = new CommandBinding(MainWindow.ShowAmendmentDialogCommand, this.ShowAmendmentDialog, ItemIsSelected);

            this.CommandBindings.Add(this.CommandBindingClose);
            this.CommandBindings.Add(this.CommandBindingShowCaseDocument);
            this.CommandBindings.Add(this.CommandBindingShowOrderForm);
            this.CommandBindings.Add(this.CommandBindingShowAmendmentDialog);

            this.m_TypingUI         = new YellowstonePathology.Business.Typing.TypingUIV2(this.m_Writer);
            this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, string.Empty, this.m_TypingUI.AccessionOrder);
            this.m_DocumentViewer   = new DocumentWorkspace();

            this.m_LocalDictationList  = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Local);
            this.m_ServerDictationList = new YellowstonePathology.Business.DictationList(Business.DictationLocationEnum.Server);

            InitializeComponent();

            this.m_TypingShortcutUserControl    = new TypingShortcutUserControl(this.m_SystemIdentity);
            this.TabItemTypingShortCuts.Content = this.m_TypingShortcutUserControl;

            this.DataContext = this.m_TypingUI;
            this.ContentControlDocument.Content = this.m_DocumentViewer;

            this.ListViewLocalDictation.ItemsSource  = this.m_LocalDictationList;
            this.ListViewServerDictation.ItemsSource = this.m_ServerDictationList;

            this.Unloaded += new RoutedEventHandler(TypingWorkspace_Unloaded);
        }
Ejemplo n.º 8
0
        public FlowWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_Writer = writer;
            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            this.m_DocumentViewer = new DocumentWorkspace();

            this.m_FlowUI = new YellowstonePathology.Business.Flow.FlowUI(this.m_Writer);

            InitializeComponent();

            this.DataContext = this.m_FlowUI;

            this.tabItemDocumentViewer.Content = this.m_DocumentViewer;
            this.tabControlFlow.SelectionChanged += new SelectionChangedEventHandler(tabControlFlow_SelectionChanged);

            this.Loaded += new RoutedEventHandler(FlowWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(FlowWorkspace_Unloaded);
            this.PreviewLostKeyboardFocus += FlowWorkspace_PreviewLostKeyboardFocus;
        }
Ejemplo n.º 9
0
        public FlowWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_Writer = writer;
            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            this.CommandBindingApplicationClosing = new CommandBinding(MainWindow.ApplicationClosingCommand, this.ApplicationClosing);
            this.CommandBindings.Add(this.CommandBindingApplicationClosing);

            this.m_DocumentViewer = new DocumentWorkspace();

            this.m_FlowUI = new YellowstonePathology.Business.Flow.FlowUI(this.m_Writer);

            InitializeComponent();

            this.DataContext = this.m_FlowUI;

            this.tabItemDocumentViewer.Content = this.m_DocumentViewer;
            this.tabControlFlow.SelectionChanged += new SelectionChangedEventHandler(tabControlFlow_SelectionChanged);

            this.Unloaded += new RoutedEventHandler(FlowWorkspace_Unloaded);
        }
Ejemplo n.º 10
0
        public PathologistWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_Writer = writer;
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            m_Loaded = false;
            this.m_PathologistUI = new PathologistUI(writer);

            InitializeComponent();

            this.DataContext = this.m_PathologistUI;

            this.Loaded += new RoutedEventHandler(PathologistWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(PathologistWorkspace_Unloaded);

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;
            this.m_BarcodeScanPort.CytologySlideScanReceived += new YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.CytologySlideScanReceivedHandler(CytologySlideScanReceived);
            this.m_BarcodeScanPort.HistologySlideScanReceived += new Business.BarcodeScanning.BarcodeScanPort.HistologySlideScanReceivedHandler(HistologySlideScanReceived);
            this.m_BarcodeScanPort.HistologyBlockScanReceived += new Business.BarcodeScanning.BarcodeScanPort.HistologyBlockScanReceivedHandler(BarcodeScanPort_HistologyBlockScanReceived);
            this.m_BarcodeScanPort.ThinPrepSlideScanReceived += new Business.BarcodeScanning.BarcodeScanPort.ThinPrepSlideScanReceivedHandler(BarcodeScanPort_ThinPrepSlideScanReceived);
        }
Ejemplo n.º 11
0
        public FlowWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_Writer         = writer;
            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            this.CommandBindingApplicationClosing = new CommandBinding(MainWindow.ApplicationClosingCommand, this.ApplicationClosing);
            this.CommandBindings.Add(this.CommandBindingApplicationClosing);

            this.m_DocumentViewer = new DocumentWorkspace();

            this.m_FlowUI = new YellowstonePathology.Business.Flow.FlowUI(this.m_Writer);

            InitializeComponent();

            this.DataContext = this.m_FlowUI;

            this.tabItemDocumentViewer.Content    = this.m_DocumentViewer;
            this.tabControlFlow.SelectionChanged += new SelectionChangedEventHandler(tabControlFlow_SelectionChanged);

            this.Unloaded += new RoutedEventHandler(FlowWorkspace_Unloaded);
        }
Ejemplo n.º 12
0
        public PathologistWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_Writer = writer;
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;

            m_Loaded             = false;
            this.m_PathologistUI = new PathologistUI(writer);

            InitializeComponent();

            this.DataContext = this.m_PathologistUI;

            this.Loaded   += new RoutedEventHandler(PathologistWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(PathologistWorkspace_Unloaded);

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;
            this.m_BarcodeScanPort.CytologySlideScanReceived  += new YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.CytologySlideScanReceivedHandler(CytologySlideScanReceived);
            this.m_BarcodeScanPort.HistologySlideScanReceived += new Business.BarcodeScanning.BarcodeScanPort.HistologySlideScanReceivedHandler(HistologySlideScanReceived);
            this.m_BarcodeScanPort.HistologyBlockScanReceived += new Business.BarcodeScanning.BarcodeScanPort.HistologyBlockScanReceivedHandler(BarcodeScanPort_HistologyBlockScanReceived);
            this.m_BarcodeScanPort.ThinPrepSlideScanReceived  += new Business.BarcodeScanning.BarcodeScanPort.ThinPrepSlideScanReceivedHandler(BarcodeScanPort_ThinPrepSlideScanReceived);
        }
Ejemplo n.º 13
0
        public LoginWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_LoadedHasRun = false;
            this.m_Writer       = writer;

            this.CommandBindingRemoveTab = new CommandBinding(MainWindow.RemoveTabCommand, RemoveTab);
            this.CommandBindings.Add(this.CommandBindingRemoveTab);

            this.m_LoginUI        = new LoginUIV2(this.m_Writer);
            this.m_DocumentViewer = new DocumentWorkspace();

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            InitializeComponent();

            this.TabItemDocumentWorkspace.Content = this.m_DocumentViewer;
            this.DataContext = this.m_LoginUI;

            this.Loaded   += new RoutedEventHandler(LoginWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(LoginWorkspace_Unloaded);
        }