Пример #1
0
 public void RemoveMilitary(Military military)
 {
     this.Militaries.Remove(military);
     military.StopTraining();
     military.StopRecruitment();
     military.BelongedArchitecture = null;
 }
Пример #2
0
 public void AddPersonToTrainingWork(Person person, Military military)
 {
     if (person.WorkKind != ArchitectureWorkKind.无)
     {
         this.RemovePersonFromWorkingList(person);
     }
     person.WorkKind = ArchitectureWorkKind.训练;
     military.StopTraining();
     military.StopRecruitment();
     person.TrainingMilitaryID = military.ID;
     person.TrainingMilitary = military;
     military.TrainingPersonID = person.ID;
     military.TrainingPerson = person;
 }