Пример #1
0
        private void OnPhaseAdd(object param)
        {
            if (_mission.AddPhase("Default Phase Name"))
            {
                Mediator.NotifyColleagues(Constants.ACTION_PHASE_ADDED, null);

                ExtendTimeExtentOnMilitaryMessages(CurrentPhaseIndex);

                CurrentPhaseIndex = _mission.PhaseList.Count - 1;
            }
        }
Пример #2
0
 private void DoNewMission(object obj)
 {
     _mission = new Mission("Default Mission");
     _militaryMessageLayer.ChildLayers.Clear();
     _phaseMessageDictionary.Clear();
     InitializeMapWithMission();
     if (_mission.PhaseList.Count < 1)
     {
         if (_mission.AddPhase("Phase 1"))
         {
             Mediator.NotifyColleagues(Constants.ACTION_PHASE_ADDED, null);
             RaisePropertyChanged(() => PhaseDescription);
         }
     }
 }
 private void DoNewMission(object obj)
 {
     _mission = new Mission("Default Mission");
     _militaryMessageLayer.ChildLayers.Clear();
     _phaseMessageDictionary.Clear();
     InitializeMapWithMission();
     if (_mission.PhaseList.Count < 1)
     {
         if (_mission.AddPhase("Phase 1"))
         {
             Mediator.NotifyColleagues(Constants.ACTION_PHASE_ADDED, null);
             RaisePropertyChanged(() => PhaseDescription);
         }
     }
 }