public bool isBetweenCase(int mouseX, int mouseY) { if ((mouseX > this.X) && (mouseX < (this.X + this._size * this.WidthCase)) && (mouseY > this.Y) && (mouseY < (this.Y + this._size * this.HeightCase))) { return true; } else { return false; } } #endregion