public FolderViewModel(DirectoryInfo info, CShell.Workspace workspace) { directoryInfo = info; this.workspace = workspace; DisplayName = directoryInfo.Name; IsEditable = true; }
public WorkspaceViewModel(CShell.Workspace workspace) { this.shell = shell; DisplayName = "Workspace Explorer"; this.workspace = workspace; this.workspace.PropertyChanged += WorkspaceOnPropertyChanged; }
private void UnloadWorkspace(CShell.Workspace workspace) { if (tree != null) { tree.Dispose(); tree = null; NotifyOfPropertyChange(() => Tree); } }
public RootFolderViewModel(string path, CShell.Workspace workspace) :base(path, workspace) { this.workspace = workspace; DisplayName = directoryInfo.FullName; IsEditable = false; IsExpanded = true; Initialize(); }
public RootFolderViewModel(string path, CShell.Workspace workspace) : base(path, workspace) { this.workspace = workspace; DisplayName = directoryInfo.FullName; IsEditable = false; IsExpanded = true; Initialize(); }
private void LoadWorkspace(CShell.Workspace workspace) { tree = new TreeViewModel(); CShellFile = new CShellFileViewModel(workspace.CShellFile); tree.Children.Add(cShellFile); //add the assembly references var refs = new AssemblyReferencesViewModel(workspace.Assemblies); tree.Children.Add(refs); //add the file tree //var files = new FileReferencesViewModel(workspace.Files, null); var files = new RootFolderViewModel(workspace.RootFolder, workspace); tree.Children.Add(files); NotifyOfPropertyChange(() => Tree); }
public EditorViewModel(CShell.Workspace workspace) { this.workspace = workspace; }
protected FolderViewModel(string path, CShell.Workspace workspace) : this(new DirectoryInfo(path), workspace) { }