Exemple #1
0
 public override void Load()
 {
     if (Global.worldWindow.CurrentWorld.IsEarth)
     {
         layer = new FlickrIconsLayer();
         Global.worldWindow.CurrentWorld.RenderableObjects.Add(layer);
     }
     base.Load();
 }
Exemple #2
0
 public override void Load()
 {
     if (ParentApplication.WorldWindow.CurrentWorld.IsEarth)
     {
         layer = new FlickrIconsLayer();
         ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layer);
     }
     base.Load();
 }
Exemple #3
0
        public override void Unload()
        {
            if (Global.worldWindow.CurrentWorld.IsEarth && layer != null)
            {
                Global.worldWindow.CurrentWorld.RenderableObjects.Remove(layer);
            }
            if (layer != null)
            {
                layer.Dispose();
                layer = null;
            }

            if (Image != null)
            {
                Image.Dispose();
                Image = null;
            }
            base.Unload();
        }