BattleShip.casePlatform.DisplayCase C# (CSharp) Метод

DisplayCase() публичный Метод

create a case of a platform
public DisplayCase ( Graphics g ) : void
g System.Drawing.Graphics
Результат void
        public void DisplayCase(Graphics g)
        {
            SolidBrush brush = new SolidBrush(this.Color);
            this.p = new Pen(Color.Black, 1);
            g.FillRectangle(brush, this.Rect);
            g.DrawRectangle(p, this.Rect);
            if (this.Cross)
            {
                this.DisplayCross(g, this.X, this.Y);
            }
        }