예제 #1
0
 public void Add(IDynamicViewModelPresenter item)
 {
     Should.NotBeNull(item, nameof(item));
     _list.Add(item);
     _presenter.OnDynamicPresenterAdded(item);
 }
예제 #2
0
 public void RegisterMediatorFactory([NotNull] Func<IViewModel, Type, IDataContext, IWindowViewMediator> mediatorFactory, int priority = 0)
 {
     Should.NotBeNull(mediatorFactory, nameof(mediatorFactory));
     lock (_mediatorRegistrations)
         _mediatorRegistrations.Add(new MediatorRegistration(priority, mediatorFactory));
 }