Exemplo n.º 1
0
 private void LoadMap(String filename)
 {
     using (Stream stream = new FileStream(filename, FileMode.Open))
     {
         this.map = AnalyzeMap.Load(stream);
         gridControl1.GridSizeX = map.SizeX;
         gridControl1.GridSizeY = map.SizeY;
         map.OnResize          += new AnalyzeMap.MapResizeHandler(map_OnResize);
         mapFileName            = filename;
         autoSaveFileName       = null;
         activeTool             = null;
         setCheckedTool(null);
     }
 }