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 HyperLinkShowGossTemplate_Click(object sender, RoutedEventArgs e) { YellowstonePathology.UI.Surgical.DictationTemplatePage dictationTemplatePage = new YellowstonePathology.UI.Surgical.DictationTemplatePage(this.m_AccessionOrder, this.m_SystemIdentity); TryShowSecondMonitorWindow(dictationTemplatePage); //this.m_SecondMonitorWindow.PageNavigator.Navigate(dictationTemplatePage); }