Пример #1
0
        public override void OnRepositoryChanged(IRepository oldRepository)
        {
            base.OnRepositoryChanged(oldRepository);

            DetachHandlers(oldRepository);
            AttachHandlers(Repository);

            if (ActiveView != null)
            {
                ActiveView.OnRepositoryChanged(oldRepository);
            }
        }
Пример #2
0
        public override void OnRepositoryChanged(IRepository oldRepository)
        {
            base.OnRepositoryChanged(oldRepository);

            DetachHandlers(oldRepository);
            AttachHandlers(Repository);

            if (Repository != null && activeTab == SubTab.InitProject)
            {
                changeTab = SubTab.History;
            }

            UpdateActiveTab();

            if (ActiveView != null)
            {
                ActiveView.OnRepositoryChanged(oldRepository);
            }
        }