/// <summary> /// Plugin entry point - All plugins must implement this function /// </summary> public override void Load() { int i = FindLayerIndice("Images"); FileInfo SettingsFile = new FileInfo(Path.Combine(PluginDirectory, ParentApplication.WorldWindow.CurrentWorld.Name + ".ini")); if(SettingsFile.Exists) { SkyGradientLayer layer = new SkyGradientLayer(LayerName, PluginDirectory, ParentApplication.WorldWindow); ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.ChildObjects.Insert((i != -1) ? i : 1, layer); //ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layer); } }
/// <summary> /// Plugin entry point - All plugins must implement this function /// </summary> public override void Load() { int i = FindLayerIndice("Images"); FileInfo SettingsFile = new FileInfo(Path.Combine(PluginDirectory, ParentApplication.WorldWindow.CurrentWorld.Name + ".ini")); if (SettingsFile.Exists) { SkyGradientLayer layer = new SkyGradientLayer(LayerName, PluginDirectory, ParentApplication.WorldWindow); ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.ChildObjects.Insert((i != -1) ? i : 1, layer); //ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layer); } }
public propertiesDialog(SkyGradientLayer layer) { this.layer = layer; InitializeComponent(); //this.Icon = WorldWind.PluginEngine.Plugin.Icon; // Init file list with *.csv DirectoryInfo di = new DirectoryInfo(layer.pluginPath); FileInfo[] imgFiles = di.GetFiles(layer.world.Name + "*.csv"); cboFiles.Items.AddRange(imgFiles); // select current file int i = cboFiles.FindString(layer.presetFileName); if (i != -1) { cboFiles.SelectedIndex = i; } }
public propertiesDialog( SkyGradientLayer layer ) { this.layer = layer; InitializeComponent(); //this.Icon = WorldWind.PluginEngine.Plugin.Icon; // Init file list with *.csv DirectoryInfo di = new DirectoryInfo(layer.pluginPath); FileInfo[] imgFiles = di.GetFiles(layer.world.Name + "*.csv"); cboFiles.Items.AddRange(imgFiles); // select current file int i = cboFiles.FindString(layer.presetFileName); if(i != -1) cboFiles.SelectedIndex = i; }