Ejemplo n.º 1
0
 public EditorViewModel(ProjectReference projectReference,
                        IConfigurationContainer <ProjectConfiguration> configuration,
                        AssetsViewModel assets,
                        Lazy <EditorWindow> window,
                        Func <AssetStoreWindow> assetStore,
                        StatusBarViewModel statusBar,
                        IObserver <LogMessage> log,
                        IObservable <EditorApp> app
                        )
 {
     _projectReference = projectReference;
     _configuration    = configuration;
     _window           = window;
     _assetStore       = assetStore;
     StatusBar         = statusBar;
     _log = log;
     _disposable.Add(app.ObserveOnDispatcher().Subscribe(SetApp, _ => SetApp(null), () => SetApp(null)));
     Assets               = assets;
     ExitCommand          = new ActionCommand(Exit);
     AssetStoreCommand    = new ActionCommand(AssetStore);
     _inspector           = new InspectorViewModel();
     _hierarchyViewModel  = new HierarchyViewModel(_inspector);
     LoadAllModelsCommand = new ActionCommand(LoadAllModels);
 }
 public InspectableViewModel()
 {
     ToggleCollapseCommand = new ActionCommand(ToggleCollapse);
 }
Ejemplo n.º 3
0
 public FileViewModel(string fullPath, string rootPath, FileSystemItemViewModel parent, AssetsViewModel assets) :
     base(fullPath, rootPath, parent, assets)
 {
     _info       = new Lazy <FileInfo>(() => new FileInfo(fullPath));
     EditCommand = new ActionCommand(Edit);
 }