private void MouseOver(Object sender, MouseEventArgs args) { _curColor = HighlightColor; }
//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); } }
private void MouseOut(Object sender, MouseEventArgs args) { _curColor = NormalColor; }