Example #1
0
        public void AddTypingWorkspace()
        {
            PageNavigationWindow secondMonitorWindow = this.ShowSecondMonitorWindowForTyping();

            if (m_TabItemTyping.Parent != null)
            {
                m_TabItemTyping.Focus();
            }
            else
            {
                this.m_TypingWorkspace       = new Surgical.TypingWorkspace(this.m_MainWindowCommandButtonHandler, secondMonitorWindow, this.m_TabItemTyping);
                this.m_TabItemTyping.Content = this.m_TypingWorkspace;
                this.TabControlLeftWorkspace.Items.Add(this.m_TabItemTyping);
                this.m_TabItemTyping.Focus();
                this.m_TypingWorkspace.Loaded += new RoutedEventHandler(this.TypingWorkspace_Loaded);
            }
        }
Example #2
0
        private PageNavigationWindow ShowSecondMonitorWindowForTyping()
        {
            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();
            }

            return(pageNavigationWindow);
        }
Example #3
0
        private PageNavigationWindow ShowSecondMonitorWindowForTyping()
        {
            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();
            }

            return pageNavigationWindow;
        }