Example #1
0
        //this method for drawing broard
        public void DrawBoard(FormGame formGame)
        {
            //calc width & height
            this.width  = this.columnLength * cellHight;
            this.height = this.rowLength * cellHight;
            //
            this.mapLocation = new Point(10, 10);
            Size mapSize = new Size(width, this.height);

            //
            formGame.Controls.Remove(this.map);
            this.map             = MyFrameWork.CreateMap(mapLocation, mapSize, "Board", Color.White);
            this.map.BorderStyle = BorderStyle.FixedSingle;
            this.map.BorderStyle = BorderStyle.FixedSingle;
            //
            formGame.Controls.Add(this.map);
        }