private IDisposable BindCatalog(Section section) { _catalogActivator.Deactivate(ref _catalogController); var model = _catalogActivator.Activate(section, ref _catalogController); Model.CatalogModel = model; return(Disposable.Empty); }
private IDisposable BindEditor() { Model.EditorModel = EditorModel.Hidden(); return(SubscribeToTarget(target => { _editorActivator.Deactivate(ref _editorController); var model = _editorActivator.Activate(target, ref _editorController); Model.EditorModel = model; })); }
private IDisposable BindInformer() { Model.InformerModel = InformerModel.Hidden(); return(SubscribeToTarget(target => { _informerActivator.Deactivate(ref _informerController); var model = _informerActivator.Activate(target, ref _informerController); Model.InformerModel = model; })); }
private void InitSettings() { var messengerModel = _messengerActivator.Deactivate(ref _messengerController); Model.MessengerModel = messengerModel; _settingsActivator.Deactivate(ref _settingsController); var settingsModel = _settingsActivator.Activate(ref _settingsController); Model.SettingsModel = settingsModel; }
public override void Dispose() { _navigationActivator.Deactivate(ref _navigationController); _messengerActivator.Deactivate(ref _messengerController); _settingsActivator.Deactivate(ref _settingsController); base.Dispose(); }
private void SetFinalStageButtonStatus() { if (Utilities.AllButtonsInactive(buttons)) { buttonActivator.Activate(); } else { buttonActivator.Deactivate(); } }