public override void OnRepositoryChanged(IRepository oldRepository) { base.OnRepositoryChanged(oldRepository); DetachHandlers(oldRepository); AttachHandlers(Repository); if (ActiveView != null) { ActiveView.OnRepositoryChanged(oldRepository); } }
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); } }