Ejemplo n.º 1
0
 public FolderViewModel(DirectoryInfo info, CShell.Workspace workspace)
 {
     directoryInfo  = info;
     this.workspace = workspace;
     DisplayName    = directoryInfo.Name;
     IsEditable     = true;
 }
Ejemplo n.º 2
0
 public FolderViewModel(DirectoryInfo info, CShell.Workspace workspace)
 {
     directoryInfo = info;
     this.workspace = workspace;
     DisplayName = directoryInfo.Name;
     IsEditable = true;
 }
Ejemplo n.º 3
0
 public WorkspaceViewModel(CShell.Workspace workspace)
 {
     this.shell = shell;
     DisplayName = "Workspace Explorer";
     this.workspace = workspace;
     this.workspace.PropertyChanged += WorkspaceOnPropertyChanged;
 }
Ejemplo n.º 4
0
 private void UnloadWorkspace(CShell.Workspace workspace)
 {
     if (tree != null)
     {
         tree.Dispose();
         tree = null;
         NotifyOfPropertyChange(() => Tree);
     }
 }
Ejemplo n.º 5
0
        public RootFolderViewModel(string path, CShell.Workspace workspace)
            :base(path, workspace)
        {
            this.workspace = workspace;
            DisplayName = directoryInfo.FullName;
            IsEditable = false;
            IsExpanded = true;


            Initialize();
        }
Ejemplo n.º 6
0
        public RootFolderViewModel(string path, CShell.Workspace workspace)
            : base(path, workspace)
        {
            this.workspace = workspace;
            DisplayName    = directoryInfo.FullName;
            IsEditable     = false;
            IsExpanded     = true;


            Initialize();
        }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
 public EditorViewModel(CShell.Workspace workspace)
 {
     this.workspace = workspace;
 }
Ejemplo n.º 9
0
 protected FolderViewModel(string path, CShell.Workspace workspace)
     : this(new DirectoryInfo(path), workspace)
 {
 }