Beispiel #1
0
 private void MouseOver(Object sender, MouseEventArgs args)
 {
     _curColor = HighlightColor;
 }
Beispiel #2
0
 //private bool _moveStartedInTitleBar;
 private void WindowMove(object sender, MouseEventArgs args)
 {
     Rectangle screen = ScreenRectangle;
     if ((args.PressedButtons & MouseButton.Left) == MouseButton.Left && Util.IsInRectangle(args.OldPosition.X, args.OldPosition.Y, screen.Left, screen.Right, screen.Top, screen.Top + 20))
     {
         Location = Location.Add(args.NewPosition.X - args.OldPosition.X, args.NewPosition.Y - args.OldPosition.Y);
     }
 }
Beispiel #3
0
 private void MouseOut(Object sender, MouseEventArgs args)
 {
     _curColor = NormalColor;
 }