Ejemplo n.º 1
0
        private void Coverage_Click_1(object sender, EventArgs e)
        {
            CoveragePlugin coveragePlugin = new CoveragePlugin();

            coveragePlugin.PanelClose += PanelRemoved;
            _controlsList.Add(coveragePlugin);
            AutoSize();
        }
        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);
            }
        }