public void RemoveMilitary(Military military) { this.Militaries.Remove(military); military.StopTraining(); military.StopRecruitment(); military.BelongedArchitecture = null; }
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; }