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);
        }
Example #2
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;
        }
        private void RefreshWorkspaces()
        {
            this.m_TreeviewWorkspace           = new Common.TreeViewWorkspace(this.m_TypingUI.AccessionOrder, this.m_SystemIdentity);
            this.m_TreeviewWorkspace.IsEnabled = this.m_TypingUI.AccessionOrder.IsLockAquiredByMe;
            this.tabItemTreeView.Content       = this.m_TreeviewWorkspace;

            this.m_AmendmentControl           = new AmendmentControlV2(this.m_SystemIdentity, this.m_TypingUI.SurgicalTestOrder.ReportNo, this.m_TypingUI.AccessionOrder);
            this.m_AmendmentControl.IsEnabled = this.m_TypingUI.AccessionOrder.IsLockAquiredByMe;
            this.TabItemAmendments.Content    = this.m_AmendmentControl;
        }
        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;
        }
        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);
        }
        private void RefreshWorkspaces()
        {
            this.m_TreeviewWorkspace = new Common.TreeViewWorkspace(this.m_TypingUI.AccessionOrder, this.m_SystemIdentity);
            this.m_TreeviewWorkspace.IsEnabled = this.m_TypingUI.AccessionOrder.IsLockAquiredByMe;
            this.tabItemTreeView.Content = this.m_TreeviewWorkspace;

            this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, this.m_TypingUI.SurgicalTestOrder.ReportNo, this.m_TypingUI.AccessionOrder);
            this.m_AmendmentControl.IsEnabled = this.m_TypingUI.AccessionOrder.IsLockAquiredByMe;
            this.TabItemAmendments.Content = this.m_AmendmentControl;
        }
Example #7
0
        private void RefreshWorkspaces()
        {
            this.m_TreeViewWorkspace = new Common.TreeViewWorkspace(this.m_LabUI.AccessionOrder, this.m_SystemIdentity);
            this.m_TreeViewWorkspace.IsEnabled = this.m_LabUI.AccessionOrder.AccessionLock.IsLockAquiredByMe;
            this.TabItemTreeView.Content = this.m_TreeViewWorkspace;

            this.m_AmendmentControl = new AmendmentControlV2(this.m_SystemIdentity, this.m_LabUI.PanelSetOrder.ReportNo, this.m_LabUI.AccessionOrder);
            this.m_AmendmentControl.IsEnabled = this.m_LabUI.AccessionOrder.AccessionLock.IsLockAquiredByMe;
            this.TabItemAmendment.Content = this.m_AmendmentControl;
        }