BattleShip.casePlatform.ChangeRectLocation C# (CSharp) Method

ChangeRectLocation() private method

change the rectangle location if the case size has change
private ChangeRectLocation ( int x, int y ) : void
x int New X position
y int New Y position
return void
        private void ChangeRectLocation(int x, int y)
        {
            this.Rect = new Rectangle(new Point(x, y), this.Rect.Size);
        }