private void drawSquare() { List<point> squareMatrix = new List<point>(); for (int j = 0; j <= 192; j+= 64) { for (int i = 0; i <= 192; i+=64) squareMatrix.Add(new Point(j, i)); } foreach(Point numb in squareMatrix) { Label abstractLabel = new Label(); abstractLabel.Size = new Size(64, 64); abstractLabel.BorderStyle = BorderStyle.None; abstractLabel.BackColor = Color.Transparent; if(numb == squareMatrix[4]) abstractLabel.Image = global::strategy_0._2.Properties.Resources.City; else abstractLabel.Image = global::strategy_0._2.Properties.Resources.Crossroad_plain; abstractLabel.Location = numb; panel1.Controls.Add(abstractLabel); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)