Exemple #1
0
 void map_Load(object sender, EventArgs e)
 {
     if (_simpleMapControl == null)
     {
         return;
     }
     _aoiHost     = _simpleMapControl.CreateObjectHost("AOI");
     _curFileHost = _simpleMapControl.CreateObjectHost("CurFile");
     _aoiObj      = new SimpleVectorObject("AOI", null);
     _aoiHost.Add(_aoiObj);
 }
Exemple #2
0
        private void AddAoi(ISimpleVectorObjectHost host, string name, Core.DrawEngine.CoordEnvelope env)
        {
            ISimpleVectorObject sv = new SimpleVectorObject(name, env);

            host.Add(sv);
        }