public BuildingViewModel(IUnityContainer container, IRegionManager regionManager) { _planObjectsrepository = container.Resolve <PlanObjectsRepository>(); _regionManager = regionManager; TestCommand = new DelegateCommand(Test); SaveObjectCommand = new DelegateCommand <BaseObject>(SaveObject); SubsystemItems = new ObservableCollection <BaseObject>(); SelectedRooms = new ObservableCollection <Room>(); }
public EngineeringViewModel(IUnityContainer container, IRegionManager manager) { _systems = new List <BaseObject>(); _container = container; _regionManager = manager; _planObjects = container.Resolve <PlanObjectsRepository>(); Title = "Инженерные системы"; NavigateCommand = new DelegateCommand(() => _regionManager.RequestNavigate(RegionNames.MainRegion, new Uri(BuildingViewNames.BuildingView, UriKind.Relative))); }