/// <summary> /// This is called when the view changes it's docking. We need to re-parent the Tax/Bev viewers. /// </summary> protected override void OnDockStyleChanged() { if (_beView != null) { _beView.SetActiveViewModel(this); } if (_taxonomyJumper != null) { _taxonomyJumper.SetActiveViewModel(this); } base.OnDockStyleChanged(); }
/// <summary> /// This is called when this view becomes the "active" view /// </summary> protected override void OnActivate() { if (IsBevShowing) { BirdsEyeViewModel.SetActiveViewModel(this); } if (TaxonomyViewModel != null) { TaxonomyViewModel.SetActiveViewModel(this); } // Replace any open taxonomy view with our new data SendMessage(AlignmentViewMessages.SwitchAlignmentView, this); base.OnActivate(); }
/// <summary> /// This turns the Birds-Eye-Viewer on and off /// </summary> private void OnShowBev() { IsBevShowing = !IsBevShowing; BirdsEyeViewModel bev = BirdsEyeViewModel; if (IsBevShowing) { bev.Show(); bev.SetActiveViewModel(this); } else { bev.CloseView.Execute(null); } }