Exemple #1
0
        private void StartTask(TaskArgumentsHolder holder)
        {
            CurrentState.NavigationGraph = Name;
            if (CurrentState.CurrentView != null && CurrentState.CurrentView.Length > 0)
            {
                _startView = UIPConfiguration.Config.GetViewSettingsFromName(CurrentState.CurrentView);
            }
            ControllerBase firstController = ControllerFactory.Create(StartView.Name, this);

            firstController.EnterTask(holder);
            CurrentState.CurrentView   = StartView.Name;
            CurrentState.NavigateValue = "";
            CurrentState.Save();

            try
            {
                ViewManager.ActivateView(null, StartView.Name, this);
            }
            catch (System.Threading.ThreadAbortException) {}
            catch (Exception ex)
            {
                throw new UIPException(Resource.ResourceManager.FormatMessage(Resource.Exceptions.RES_ExceptionCantActivateView, StartView.Name) + UIPException.GetFirstExceptionMessage(ex), ex);
            }
        }