public ImageOverlayList(ImageOverlayPlugin plugin) : base(plugin.Name) { //************* this.Plugin = plugin; ParentApplication = plugin.ParentApplication; Radius = (float)ParentApplication.WorldWindow.CurrentWorld.EquatorialRadius; ImageOverlay.Parent = this; Load(); // true to make this layer active on startup, this is equal to the checked state in layer manager IsOn = true; ParentApplication.WorldWindow.MouseUp += new MouseEventHandler(WorldWindow_MouseUp); ParentApplication.WorldWindow.MouseDown += new MouseEventHandler(WorldWindow_MouseDown); ParentApplication.WorldWindow.MouseMove += new MouseEventHandler(WorldWindow_MouseMove); defaultImage = Path.Combine(plugin.PluginDirectory, "default.png"); }
public ImageOverlayList(ImageOverlayPlugin plugin) : base(plugin.Name) { //************* this.Plugin = plugin; ParentApplication = plugin.ParentApplication; Radius = (float)ParentApplication.WorldWindow.CurrentWorld.EquatorialRadius; ImageOverlay.Parent = this; Load(); // true to make this layer active on startup, this is equal to the checked state in layer manager IsOn = true; ParentApplication.WorldWindow.MouseUp += new MouseEventHandler(WorldWindow_MouseUp); ParentApplication.WorldWindow.MouseDown += new MouseEventHandler(WorldWindow_MouseDown); ParentApplication.WorldWindow.MouseMove += new MouseEventHandler(WorldWindow_MouseMove); defaultImage = Path.Combine( plugin.PluginDirectory, "default.png" ); }