public override void Load() { if (Global.worldWindow.CurrentWorld.IsEarth) { layer = new FlickrIconsLayer(); Global.worldWindow.CurrentWorld.RenderableObjects.Add(layer); } base.Load(); }
public override void Load() { if (ParentApplication.WorldWindow.CurrentWorld.IsEarth) { layer = new FlickrIconsLayer(); ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layer); } base.Load(); }
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(); }