Ejemplo n.º 1
0
        public void StartForSubject <T>(T subject)
        {
            var presenter = _applicationController.Open(subject, new OSPSuiteMacroCommand <OSPSuiteExecutionContext>());

            try
            {
                presenter.Edit(subject);
            }
            catch (Exception)
            {
                //exception while loading the subject. We need to close the presenter to avoid memory leaks
                _applicationController.Close(subject);
                throw;
            }
        }
 private void openPresenter <T>(T objectToVisit)
 {
     _presenter = _applicationController.Open(objectToVisit, _commandCollector);
 }
Ejemplo n.º 3
0
        protected override void PerformExecute()
        {
            var presenter = _applicationController.Open(Subject, _context.HistoryManager);

            presenter.Edit(Subject);
        }