Ejemplo n.º 1
0
        private void DestroySystem()
        {
            Trace.WriteLine("Destroy system");
            ////_toggleablePresenter.UnsetModel();
            ////_container.Release(_toggleablePresenter);

            _portal.ContentSelected -= _contentProcessorAdapter.Process;
            _portal = null;
            _contentProcessorAdapter = null;

            _toggleablePresenter = null;
        }
Ejemplo n.º 2
0
        private void ConstructSystem()
        {
            Trace.WriteLine("Construct system");
            try
            {
                _toggleablePresenter = _container.Resolve<IToggleablePresenter>();

                _contentProcessorAdapter = _container.Resolve<IContentProcessorAdapter>();
                _portal = _container.Resolve<IPortal>();
                _portal.ContentSelected += _contentProcessorAdapter.Process;
            }
            catch (Exception e)
            {
                Trace.WriteLine(e);
            }
            //var formVisibilityModel = _container.Resolve<IToggleModel>();
            //_toggleablePresenter.SetModel(formVisibilityModel);
        }