Пример #1
0
        private void UpdateTreeIcons()
        {
            if (treeLocals != null)
            {
                treeLocals.UpdateIcons(Styles.ActiveBranchIcon, Styles.BranchIcon, Styles.FolderIcon, Styles.GlobeIcon);
            }

            if (treeRemotes != null)
            {
                treeRemotes.UpdateIcons(Styles.ActiveBranchIcon, Styles.BranchIcon, Styles.FolderIcon, Styles.GlobeIcon);
            }
        }
Пример #2
0
        public override void OnEnable()
        {
            base.OnEnable();

            var hasFocus = HasFocus;

            if (treeLocals != null)
            {
                treeLocals.ViewHasFocus = hasFocus;
                treeLocals.UpdateIcons(Styles.ActiveBranchIcon, Styles.BranchIcon, Styles.FolderIcon, Styles.GlobeIcon);
            }

            if (treeRemotes != null)
            {
                treeRemotes.ViewHasFocus = hasFocus;
                treeRemotes.UpdateIcons(Styles.ActiveBranchIcon, Styles.BranchIcon, Styles.FolderIcon, Styles.GlobeIcon);
            }

            AttachHandlers(Repository);
            ValidateCachedData(Repository);
        }
Пример #3
0
        public override void OnEnable()
        {
            base.OnEnable();

            var hasFocus = HasFocus;

            if (treeLocals != null)
            {
                treeLocals.ViewHasFocus = hasFocus;
                treeLocals.UpdateIcons(Styles.ActiveBranchIcon, Styles.BranchIcon, Styles.FolderIcon, Styles.GlobeIcon);
            }

            if (treeRemotes != null)
            {
                treeRemotes.ViewHasFocus = hasFocus;
                treeRemotes.UpdateIcons(Styles.ActiveBranchIcon, Styles.BranchIcon, Styles.FolderIcon, Styles.GlobeIcon);
            }

            AttachHandlers(Repository);
            Repository.CheckLocalAndRemoteBranchListChangedEvent(lastLocalAndRemoteBranchListChangedEvent);
        }