Exemplo n.º 1
0
        private void CreateHierarchy()
        {
            var architectsWithoutPrincipal =
                Architects.FindAll(a => a.PrincipalId == -2).OrderByDescending(a => a.Pesel).ToList();

            architectsWithoutPrincipal.ForEach(CalculatePrincipalId);
            _lastArchitectId = architectsWithoutPrincipal.Last().Id;
        }
Exemplo n.º 2
0
 private void ShuffleArchitects(ArchitectureTypeEnum type)
 {
     AvailableArchitects[type] = Architects.FindAll(a => a.Specialization == type);
     AvailableArchitects[type] = ShuffleList(AvailableArchitects[type]);
     var tmp = AvailableArchitects[type].ToList().GroupBy(a => a.Id).ToList();
 }