Exemplo n.º 1
0
        public void Execute(object parameter)
        {
            var canvasWindow = new CanvasWindow(new Dyysh.Image.CaptureGDI());

            canvasWindow.Show();
            canvasWindow.Activate();
        }
Exemplo n.º 2
0
 /// <summary>
 /// opens a new canvas screen
 /// </summary>
 private void showCanvas()
 {
     if (canvas == null)
     {
         canvas = new CanvasWindow();
         subscribeToCanvasHandler();
     }
     canvas.Show();
     alignScreens();
 }
Exemplo n.º 3
0
 private void StartCanvasWindow()
 {
     CanvasWindow canvas = new CanvasWindow();
     if (Screen.AllScreens.Length > 1) {
         int mainScreen = Screen.AllScreens.Length == 2 ? 1 : 0;
         Screen s2 = Screen.AllScreens[mainScreen];
         System.Drawing.Rectangle r2 = s2.Bounds;
         canvas.Top = r2.Top;
         canvas.Left = r2.Left;
         canvas.Show();
         canvas.WindowStyle = WindowStyle.None;
         canvas.WindowState = WindowState.Maximized;
         canvas.Topmost = true;
     }
     else {
         Screen s1 = Screen.AllScreens[0];
         System.Drawing.Rectangle r1 = s1.WorkingArea;
         canvas.Top = r1.Top;
         canvas.Left = r1.Left;
         canvas.Show();
     }
 }