Ejemplo n.º 1
0
        public void ToolsHistoryClick()
        {
            Debug.Assert(_view.WorkUnitHistoryMenuEnabled);

            if (_historyPresenter == null)
            {
                _historyPresenter = _presenterFactory.GetHistoryPresenter();
                _historyPresenter.Initialize();
                _historyPresenter.PresenterClosed += (sender, args) =>
                {
                    _presenterFactory.Release(_historyPresenter);
                    _historyPresenter = null;
                };
            }

            if (_historyPresenter != null)
            {
                _historyPresenter.Show();
            }
        }
Ejemplo n.º 2
0
        public void ToolsHistoryClick()
        {
            Debug.Assert(_view.WorkUnitHistoryMenuEnabled);

             if (_historyPresenter == null)
             {
            _historyPresenter = ServiceLocator.Resolve<HistoryPresenter>();
            _historyPresenter.Initialize();
            _historyPresenter.PresenterClosed += delegate { _historyPresenter = null; };
             }

             _historyPresenter.Show();
        }
Ejemplo n.º 3
0
      public void ToolsHistoryClick()
      {
         Debug.Assert(_view.WorkUnitHistoryMenuEnabled);

         if (_historyPresenter == null)
         {
            _historyPresenter = _presenterFactory.GetHistoryPresenter();
            _historyPresenter.Initialize();
            _historyPresenter.PresenterClosed += (sender, args) =>
            {
               _presenterFactory.Release(_historyPresenter);
               _historyPresenter = null;
            };
         }

         if (_historyPresenter != null)
         {
            _historyPresenter.Show();
         }
      }