Example #1
0
File: Button.cs Project: envy/Huddy
 private void MouseOver(Object sender, MouseEventArgs args)
 {
     _curColor = HighlightColor;
 }
Example #2
0
File: Window.cs Project: envy/Huddy
 //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);
     }
 }
Example #3
0
File: Button.cs Project: envy/Huddy
 private void MouseOut(Object sender, MouseEventArgs args)
 {
     _curColor = NormalColor;
 }