Beispiel #1
0
        public override void OnRepositoryChanged(IRepository oldRepository)
        {
            base.OnRepositoryChanged(oldRepository);

            DetachHandlers(oldRepository);
            AttachHandlers(Repository);

            if (ActiveView != null)
            {
                ActiveView.OnRepositoryChanged(oldRepository);
            }
        }
Beispiel #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);
            }
        }