示例#1
0
 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();
 }
示例#2
0
 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);
 }