Exemple #1
0
 public FileNodeViewModel(ProjectModel project, FileModel file, BaseNodeViewModel parent)
     : base(file.FullFileName, file.Name, parent, file.IsFolder || file.FileDefinition.OwnerChilds.Count > 0)
 {
     Project = project;
     File    = file;
     if (!file.IsFolder && (project.Definition.FilesDefinition.SearchByExtension(file.Extension) == null ||
                            project.Definition.FilesDefinition.MustShowExtension(file)))
     {
         Text += "." + file.Extension;
     }
 }
 public ProjectNodeViewModel(BaseNodeViewModel parent, ProjectModel project) : base(project.FullFileName, project.Name, parent, true)
 {
     Project = project;
     IsBold  = true;
 }
 public SolutionFolderNodeViewModel(BaseNodeViewModel parent, SolutionFolderModel folder) : base(folder.GlobalId, folder.Name, parent, true)
 {
     Folder = folder;
     IsBold = true;
 }
 public OwnerNodeViewModel(FileModel file, OwnerChildModel ownerChild, BaseNodeViewModel parent, bool hasChilds = true)
     : base(file.FullFileName + "_" + ownerChild.GlobalId, ownerChild.Text, parent, hasChilds)
 {
     File       = file;
     OwnerChild = ownerChild;
 }