public void OverCase(int x, int y) { if ((x > this.Rect.X) && (x < this.Rect.X + this.Rect.Width) && (y > this.Rect.Y) && (y < this.Rect.Y + this.Rect.Height)) { this.Color = Color.CornflowerBlue; } else { this.Color = Color.White; } } #endregion