Exemplo n.º 1
0
 public Form1(Map.Map map)
 {
     this.map = map;
     InitializeComponent();
     InitialVisualMap();
     //Label lab1 = new Label();
     //lab1.AutoSize = false;
     //lab1.Width = 10;
     //lab1.Height = 10;
     //lab1.Location = new Point(10 + 8 + 3, 8);
     //lab1.BackColor = Color.Silver;
     //lab1.Click += Lab1_Click;
     //LayerControlPanel.TabPages[0].Controls.Add(lab1);
 }
Exemplo n.º 2
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Map.Map map = new Map.Map();
     if (Map.Map.CheckForMapFile())
     {
         map = (Map.Map)Map.Map.ReadExistedMap();
         Utils.Logger.WriteMsgAndLog("Read map data from existed file...");
     }
     else
     {
         map = new Map.Map(NumOfLayers: 3, Size: new int[] { 10, 20 },
                           MainPath: new int[] { 4, 7 }, Elevator: new int[] { 20 });
         Utils.Logger.WriteMsgAndLog("Creating a new map...");
     }
     Application.Run(new Form1(map));
 }