Ejemplo n.º 1
0
 void strokewindow_MouseMove(object sender, MouseEventArgs e)
 {
     Hurricane.Views.Test.TestWindow.AddMessage("Stroke: Mouse Move");
     if (!MagicArrowIsShown && !IsInZone && StrokeWindow.PositionIsOk(_movedoutside, Cursor.Position.X, WpfScreen.MostLeftX - 2, WpfScreen.MostRightX))
     {
         IsInZone = true;
         Point p      = e.GetPosition(Strokewindow);
         var   screen = WpfScreen.GetScreenFrom(p);
         ShowMagicArrow(p.Y + screen.WorkingArea.Top, _movedoutside);
     }
     MouseWasOver = true;
 }
Ejemplo n.º 2
0
 void MagicWindow_MouseLeave(object sender, MouseEventArgs e)
 {
     Hurricane.Views.Test.TestWindow.AddMessage("Magic Arrow: Mouse Leave");
     if (StrokeWindow.PositionIsOk(_movedoutside, Cursor.Position.X, 2 - WpfScreen.MostLeftX, WpfScreen.MostRightX))
     {
         if (Strokewindow != null)
         {
             Strokewindow.SetLeft(_movedoutside == Side.Left ? WpfScreen.MostLeftX : WpfScreen.MostRightX - 1, _movedoutside);
         }
         HideMagicArrow();
     }
     else
     {
         Strokewindow.SetLeft(_movedoutside == Side.Left ? WpfScreen.MostLeftX : WpfScreen.MostRightX - 1, _movedoutside);
     }
 }