Пример #1
0
        private IDisposable BindCatalog(Section section)
        {
            _catalogActivator.Deactivate(ref _catalogController);
            var model = _catalogActivator.Activate(section, ref _catalogController);

            Model.CatalogModel = model;

            return(Disposable.Empty);
        }
Пример #2
0
        private IDisposable BindEditor()
        {
            Model.EditorModel = EditorModel.Hidden();

            return(SubscribeToTarget(target =>
            {
                _editorActivator.Deactivate(ref _editorController);
                var model = _editorActivator.Activate(target, ref _editorController);
                Model.EditorModel = model;
            }));
        }
Пример #3
0
        private IDisposable BindInformer()
        {
            Model.InformerModel = InformerModel.Hidden();

            return(SubscribeToTarget(target =>
            {
                _informerActivator.Deactivate(ref _informerController);
                var model = _informerActivator.Activate(target, ref _informerController);
                Model.InformerModel = model;
            }));
        }
Пример #4
0
        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;
        }
Пример #5
0
        public override void Dispose()
        {
            _navigationActivator.Deactivate(ref _navigationController);
            _messengerActivator.Deactivate(ref _messengerController);
            _settingsActivator.Deactivate(ref _settingsController);

            base.Dispose();
        }
Пример #6
0
 private void SetFinalStageButtonStatus()
 {
     if (Utilities.AllButtonsInactive(buttons))
     {
         buttonActivator.Activate();
     }
     else
     {
         buttonActivator.Deactivate();
     }
 }