public void OnShowPeptides(object value) { ManagedContent peptidesView = _regionManager.FindExistingView("BottomRegion", typeof(PeptidesView)); if (peptidesView == null) { peptidesView = new PeptidesView(new PeptidesViewModel(value as Core.Domain.Run), _eventAggregator); _regionManager.AddToRegion("BottomRegion", peptidesView); } peptidesView.Show(); peptidesView.Activate(); }
public void OnShowPeptidesForValidation(Result value) { PeptidesView peptidesView = (PeptidesView)_regionManager.FindExistingView("BottomRegion", typeof(PeptidesView)); if (peptidesView == null) { peptidesView = new PeptidesView(new PeptidesViewModel(value, _eventAggregator), _eventAggregator); _regionManager.AddToRegion("BottomRegion", peptidesView); } peptidesView.Show(); peptidesView.Activate(); peptidesView.Refresh(value); }