public static House CreateMap(int maxCountWidth, int maxCountHeight, List<string> lstAllowedObjects)
        {
            var house = new House(maxCountWidth, maxCountHeight, lstAllowedObjects, new System.Drawing.Point(0, 0), 0, Constants.HouseId, 50, 50);

            house.CreateHouse();

            return null;
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (house != null)
            {
                button3_Click(null, null);
                _scMain.Panel1.Controls.Remove(house._controlAll);
            }

               var maxW = int.Parse(_tbWidthAll.Text);
                var maxH = int.Parse(_tbHeightAll.Text);

                var cellW = int.Parse(_tbSizeCellX.Text);
                var cellH = int.Parse(_tbSizeCellY.Text);

                house = new House(maxW, maxH, new List<string>(), new System.Drawing.Point(0, 0), 0, Constants.HouseId, cellW, cellH);
                house.CreateHouseBorder();

            _scMain.Panel1.Controls .Add(house._controlAll);
            house._controlAll.Location = new Point(10, 10);
        }