Example #1
0
 private void PrepareEngineeringData(Repository repo)
 {
     _systems.Clear();
     _systems.AddRange(_planObjects.PlanObjects.Values.Select(m => new Microclimate()));
     _systems.AddRange(_planObjects.PlanObjects.Values.Where(v => v.TypeId == (int)ObjectTypes.DHSPlan));
     _systems.AddRange(_planObjects.PlanObjects.Values.Where(v => v.TypeId == (int)ObjectTypes.ElectricalGridPlan));
     _systems.AddRange(_planObjects.PlanObjects.Values.Where(v => v.TypeId == (int)ObjectTypes.VentilationPlan));
 }
Example #2
0
 private void OnDataLoaded(Repository sender)
 {
     if (sender.HasData)
         OnBootProgressChangedEvent("Загрузка завершена - " + sender.Title);
     if (_repositories.All(r => r.HasData))
         Application.Current.Dispatcher.BeginInvoke(new Action(ConfigureViewModels));
 }