Inheritance: INotifyPropertyChanged
Exemplo n.º 1
0
        public GitTreeObject GetTree(string commitId)
        {
            if (repository == null)
            {
                return(null);
            }

            var treeId = GetTreeIdFromCommitId(repository, commitId);
            var tree   = new GitTreeObject
            {
                Id         = treeId.Name, Name = "", IsTree = true, IsExpanded = true,
                repository = this.repository
            };

            //expand first level
            //foreach (var t in tree.Children) t.IsExpanded = true;
            return(tree);
        }
        public GitTreeObject GetTree(string commitId)
        {
            if (repository == null) return null;

            var treeId = GetTreeIdFromCommitId(repository, commitId);
            var tree = new GitTreeObject
            {
                Id = treeId.Name, Name = "", IsTree=true, IsExpanded= true,
                repository = this.repository
            };

            //expand first level
            //foreach (var t in tree.Children) t.IsExpanded = true;
            return tree;
        }