Ejemplo n.º 1
0
 public override bool CheckMouse(Point cursor)
 {
     if (CustomShapes.RoundedRect(this.TrickUp, this.CornerRadius).IsVisible(cursor))
     {
         return(true);
     }
     else if (CustomShapes.RoundedRect(this.TrickDown, this.CornerRadius).IsVisible(cursor))
     {
         return(true);
     }
     else if (CustomShapes.RoundedRect(this.TrickLeft, this.CornerRadius).IsVisible(cursor))
     {
         return(true);
     }
     else if (CustomShapes.RoundedRect(this.TrickRight, this.CornerRadius).IsVisible(cursor))
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 public override bool CheckMouse(Point cursor)
 {
     return(CustomShapes.RoundedRect(new Rectangle(new Point(this.Coords.X, this.Coords.Y), this.Size), this.CornerRadius).IsVisible(cursor));
 }