Beispiel #1
0
 public void Action()
 {
     _complete = false;
     var list = ConfigurationManager.GetSection("ShoyMission") as MissionSection;
     if (list == null || list.Missions.Count == 0)
     {
         _complete = true;
         return;
     }
     Abort();
     foreach (Mission mission in list.Missions)
     {
         var item = new MissionItem(mission);
         _missions.Add(item);
         item.Start();
     }
     _complete = true;
 }
Beispiel #2
0
        public void Action()
        {
            _complete = false;
            var list = ConfigurationManager.GetSection("ShoyMission") as MissionSection;

            if (list == null || list.Missions.Count == 0)
            {
                _complete = true;
                return;
            }
            Abort();
            foreach (Mission mission in list.Missions)
            {
                var item = new MissionItem(mission);
                _missions.Add(item);
                item.Start();
            }
            _complete = true;
        }