示例#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();
            }
        }
示例#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();
        }
示例#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();
         }
      }