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); }
private void HyperLinkShowFinalizeDialog_Click(object sender, RoutedEventArgs e) { this.m_PageNavigationWindow = new PageNavigationWindow(this.m_SystemIdentity); PublishedDocumentFinalPage publishedDocumentFinalPage = new PublishedDocumentFinalPage(this.m_PathologistUI.PanelSetOrder, this.m_PathologistUI.AccessionOrder, this.m_SystemIdentity); publishedDocumentFinalPage.Close += new PublishedDocumentFinalPage.CloseEventHandler(PublishedDocumentFinalPage_Close); this.m_PageNavigationWindow.Show(); this.m_PageNavigationWindow.PageNavigator.Navigate(publishedDocumentFinalPage); }
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 TryShowSecondMonitorWindow(YellowstonePathology.UI.Surgical.DictationTemplatePage dictationTemplatePage) { PageNavigationWindow pageNavigationWindow = null; if (System.Windows.Forms.Screen.AllScreens.Length == 2) { pageNavigationWindow = new PageNavigationWindow(this.m_SystemIdentity); System.Windows.Forms.Screen screen2 = System.Windows.Forms.Screen.AllScreens[1]; System.Drawing.Rectangle screen2Rectangle = screen2.WorkingArea; pageNavigationWindow.WindowStartupLocation = System.Windows.WindowStartupLocation.Manual; pageNavigationWindow.Width = 1500; pageNavigationWindow.Height = 800; pageNavigationWindow.Left = screen2Rectangle.Left + (screen2Rectangle.Width - pageNavigationWindow.Width) / 2; pageNavigationWindow.Top = screen2Rectangle.Top + (screen2Rectangle.Height - pageNavigationWindow.Height) / 2; pageNavigationWindow.Show(); pageNavigationWindow.PageNavigator.Navigate(dictationTemplatePage); } }
private void HyperLinkShowFinalizeDialog_Click(object sender, RoutedEventArgs e) { this.m_PageNavigationWindow = new PageNavigationWindow(this.m_SystemIdentity); this.ShowFinalizeDialog(); }