コード例 #1
0
 public override void Load()
 {
     if (Global.worldWindow.CurrentWorld.IsEarth)
     {
         layer = new FlickrIconsLayer();
         Global.worldWindow.CurrentWorld.RenderableObjects.Add(layer);
     }
     base.Load();
 }
コード例 #2
0
ファイル: FlickrPlugin.cs プロジェクト: Fav/testww
 public override void Load()
 {
     if (ParentApplication.WorldWindow.CurrentWorld.IsEarth)
     {
         layer = new FlickrIconsLayer();
         ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layer);
     }
     base.Load();
 }
コード例 #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();
        }