예제 #1
0
 protected override void OnMouseDown(MouseEventArgs mevent)
 {
     base.OnMouseDown(mevent);
     _isPushed = true;
     if (DrawPushAnimation)
     {
         ButtonAnimation.CurrentValue = 0;
         ButtonAnimation.Animated     = true;
         ButtonAnimation.TargetButton = this;
         ButtonAnimation.MousePos     = mevent.Location;
         ButtonAnimation.Restart();
     }
     Refresh();
 }