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 SearchWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, System.Windows.Controls.TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_Writer = writer;

            this.m_SystemIdentity = YellowstonePathology.Business.User.SystemIdentity.Instance;
            this.m_Search = new Business.SearchUI();
            this.m_DocumentViewer = new DocumentWorkspace();

            InitializeComponent();

            this.DataContext = this.m_Search;
            this.TabItemDocumentViewer.Content = this.m_DocumentViewer;

            this.Loaded += new RoutedEventHandler(SearchWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(SearchWorkspace_Unloaded);
        }
Ejemplo n.º 3
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.º 4
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.º 5
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);
        }