Esempio n. 1
0
        private void BuildTree()
        {
            if (treeLocals == null)
            {
                treeLocals = new BranchesTree();

                treeRemotes          = new BranchesTree();
                treeRemotes.IsRemote = true;

                UpdateTreeIcons();
            }

            localBranches.Sort(CompareBranches);
            remoteBranches.Sort(CompareBranches);

            treeLocals.Load(localBranches.Cast <ITreeData>(), LocalTitle);
            treeRemotes.Load(remoteBranches.Cast <ITreeData>(), RemoteTitle);
            Redraw();
        }
Esempio n. 2
0
        private void BuildTree()
        {
            if (treeLocals == null)
            {
                treeLocals       = new BranchesTree();
                treeLocals.Title = LocalTitle;

                treeRemotes          = new BranchesTree();
                treeRemotes.Title    = RemoteTitle;
                treeRemotes.IsRemote = true;

                TreeOnEnable();
            }

            localBranches.Sort(CompareBranches);
            remoteBranches.Sort(CompareBranches);

            treeLocals.Load(localBranches.Select(branch => new GitBranchTreeData(branch)));
            treeRemotes.Load(remoteBranches.Select(branch => new GitBranchTreeData(branch)));
            Redraw();
        }