private void SmartView_Click(object sender, EventArgs e) { PopulateContextViews(); SmartViewDropdown.Show(SmartView, new Point(0, SmartView.Height)); }
public UserControl OpenTool(PluginType pluginType, Control control) { switch (pluginType) { case PluginType.Templates: TemplatesPlugin templatesPlugin = new TemplatesPlugin(); templatesPlugin.PanelClose += PanelRemoved; return(templatesPlugin); case PluginType.SatelliteCreator: NewAssetForm newAssetForm = new NewAssetForm(); newAssetForm.PanelClose += PanelRemoved; return(newAssetForm); case PluginType.UdlTleImport: InsertTleFromUdl insertTleFromUdl = new InsertTleFromUdl(); insertTleFromUdl.PanelClose += PanelRemoved; return(insertTleFromUdl); case PluginType.EpochUpdate: SatelliteEpochUpdatePlugin satelliteEpochUpdatePlugin = new SatelliteEpochUpdatePlugin(); satelliteEpochUpdatePlugin.PanelClose += PanelRemoved; return(satelliteEpochUpdatePlugin); case PluginType.FacilityCreator: FacilityCreatorPlugin facilityCreatorPlugin = new FacilityCreatorPlugin(); facilityCreatorPlugin.PanelClose += PanelRemoved; return(facilityCreatorPlugin); case PluginType.GroundEvents: GroundEventsPlugin groundEventsPlugin = new GroundEventsPlugin(); groundEventsPlugin.PanelClose += PanelRemoved; return(groundEventsPlugin); case PluginType.SmartView: PopulateContextViews(); SmartViewDropdown.Show(control, new Point(0, control.Height)); return(null); case PluginType.StationAccess: StationAccessPlugin stationAccessPlugin = new StationAccessPlugin(); stationAccessPlugin.PanelClose += PanelRemoved; return(stationAccessPlugin); case PluginType.Coverage: CoveragePlugin coveragePlugin = new CoveragePlugin(); coveragePlugin.PanelClose += PanelRemoved; return(coveragePlugin); case PluginType.PassiveSafety: PassiveSafetyPlugin passiveSafetyPlugin = new PassiveSafetyPlugin(); passiveSafetyPlugin.PanelClose += PanelRemoved; return(passiveSafetyPlugin); case PluginType.VolumeCreator: VolumePlugin volumePlugin = new VolumePlugin(); volumePlugin.PanelClose += PanelRemoved; return(volumePlugin); case PluginType.SolarAnglesUtility: SolarPhasePlugin solarPhasePlugin = new SolarPhasePlugin(); solarPhasePlugin.PanelClose += PanelRemoved; return(solarPhasePlugin); case PluginType.PlaneCrossingTimes: PlaneCrossingPlugin planeCrossingPlugin = new PlaneCrossingPlugin(); planeCrossingPlugin.PanelClose += PanelRemoved; return(planeCrossingPlugin); default: return(null); } }