Exemplo n.º 1
0
 private void DestroySystem()
 {
     Console.WriteLine("Destroy system");
     //_toggleablePresenter.UnsetModel();
     //_container.Release(_toggleablePresenter);
     _toggleablePresenter = null;
 }
Exemplo n.º 2
0
 private void ConstructSystem()
 {
     Console.WriteLine("Construct system");
     _toggleablePresenter = _container.Resolve<IToggleablePresenter>();
     //var formVisibilityModel = _container.Resolve<IToggleModel>();
     //_toggleablePresenter.SetModel(formVisibilityModel);
 }
Exemplo n.º 3
0
        private void DestroySystem()
        {
            Trace.WriteLine("Destroy system");
            ////_toggleablePresenter.UnsetModel();
            ////_container.Release(_toggleablePresenter);

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

            _toggleablePresenter = null;
        }
Exemplo n.º 4
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);
        }