Exemplo n.º 1
0
 public static void RenderMap(MG_Map map, MG_MapView mapview, Graphics g)
 {
     for (int i = 0; i < map.GetLayerCount(); i++)
     {
         RenderLayer(map.GetLayer(i), mapview, g);
     }
 }
Exemplo n.º 2
0
        private void ribbonButton_NewMap_Click(object sender, EventArgs e)
        {
            // new map
            MG_Map map = new MG_Map();

            // get map name
            MG_DlgNewMap dlg = new MG_DlgNewMap();
            dlg.InitializeMapName(map.GetMapName());
            dlg.ShowDialog();
            map.SetMapName(dlg.GetMapName());

            // save map to list
            this.m_gMaps.Add(map);

            TreeNode mapNode = new TreeNode();
            mapNode.Text = map.GetMapName();
            mapNode.Checked = false;
            this.treeViewContent.Nodes.Add(mapNode);
            // set selectedNode
            this.m_gSelectedNode = mapNode;
            this.treeViewContent.SelectedNode = this.m_gSelectedNode;

            this.Refresh();
            // set state
            this.setState();
        }
Exemplo n.º 3
0
 public void Add(MG_Map map)
 {
     this.Maps.Add(map);
 }
Exemplo n.º 4
0
 public MG_ToolPan(MG_Map map, MG_MapView mapview)
     : base(MG_ToolType.Tool_Pan, null, mapview)
 {
     this.CurrentMap = map;
 }
Exemplo n.º 5
0
 public void Add(MG_Map map)
 {
     this.Maps.Add(map);
 }