public bool IsBetweenCase(int mouseX, int mouseY) { if ((mouseX > this.X) && (mouseX < this.X + this.Size) && (mouseY > this.Y) && (mouseY < this.Y + this.Size)) { return true; } else { return false; } }