private void FromObjectType_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (FromObjectType.SelectedIndex != -1)
     {
         CommonData.FromObjectNames.Clear();
         CreatorFunctions.PopulateObjectListByClass(FromObjectList, FromObjectType.Text);
         //if (FromObjectType.SelectedIndex == 0)
         //{
         //    PopulateObjectList(FromObjectList, "Facility");
         //}
         //else if (FromObjectType.SelectedIndex == 1)
         //{
         //    PopulateObjectList(FromObjectList, "Place");
         //}
         //else if (FromObjectType.SelectedIndex == 2)
         //{
         //    PopulateObjectList(FromObjectList, "Target");
         //}
         //else if (FromObjectType.SelectedIndex == 3)
         //{
         //    PopulateObjectList(FromObjectList, "Sensor");
         //}
         //else if (FromObjectType.SelectedIndex == 4)
         //{
         //    PopulateObjectList(FromObjectList, "Constellation");
         //}
     }
 }
 private void ToObjectType_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ToObjectType.SelectedIndex != -1)
     {
         CommonData.ToObjectNames.Clear();
         CreatorFunctions.PopulateObjectListByClass(ToObjectList, ToObjectType.Text);
         //if (ToObjectType.SelectedIndex == 0)
         //{
         //    PopulateObjectList(ToObjectList, "Satellite");
         //}
         //else if (ToObjectType.SelectedIndex == 1)
         //{
         //    PopulateObjectList(ToObjectList, "Aircraft");
         //}
         //else if (ToObjectType.SelectedIndex == 2)
         //{
         //    PopulateObjectList(ToObjectList, "Missile");
         //}
         //else if (ToObjectType.SelectedIndex == 3)
         //{
         //    PopulateObjectList(ToObjectList, "LaunchVehicle");
         //}
         //else if (ToObjectType.SelectedIndex == 4)
         //{
         //    PopulateObjectList(ToObjectList, "Constellation");
         //}
     }
 }
 private void PopulateCrossingObjects(string classType)
 {
     CreatorFunctions.PopulateObjectListByClass(CrossingObjectsList, classType);
     //Remove plane reference satellite from list if required
     foreach (ListViewItem item in CrossingObjectsList.Items)
     {
         if (item.Text == PlaneSatellite.Text)
         {
             CrossingObjectsList.Items.Remove(item);
         }
     }
 }
예제 #4
0
        public SatelliteEpochUpdatePlugin()
        {
            InitializeComponent();
            _satelliteUpdateList = new List <string>();
            ASTGRunCheck.Checked = false;
            _cScenario           = CommonData.StkRoot.CurrentScenario as IAgScenario;

            dtp_start.Value = Convert.ToDateTime(_cScenario.StartTime.ToString());
            dtp_end.Value   = Convert.ToDateTime(_cScenario.StopTime.ToString());

            CreatorFunctions.PopulateObjectListByClass(SatelliteList, "Satellite");
        }
 private void PopulateTargets()
 {
     TargetsList.Items.Clear();
     CommonData.SelectedTargets.Clear();
     if (TargetType.SelectedIndex == 0)
     {
         CreatorFunctions.PopulateObjectListByClass(TargetsList, "Satellite");
     }
     else if (TargetType.SelectedIndex == 1)
     {
         CreatorFunctions.PopulateObjectListByClass(TargetsList, "Missile");
     }
     else if (TargetType.SelectedIndex == 2)
     {
         CreatorFunctions.PopulateObjectListByClass(TargetsList, "Aircraft");
     }
 }
 private void PopulateObservers()
 {
     ObserversList.Items.Clear();
     CommonData.SelectedObservers.Clear();
     if (ObserverType.SelectedIndex == 0)
     {
         CreatorFunctions.PopulateObjectListByClass(ObserversList, "Satellite");
     }
     else if (ObserverType.SelectedIndex == 1)
     {
         CreatorFunctions.PopulateObjectListByClass(ObserversList, "Facility");
     }
     else if (ObserverType.SelectedIndex == 2)
     {
         CreatorFunctions.PopulateObjectListByClass(ObserversList, "Sensor");
     }
 }