private void ExecuteExternal(InstallActions postExecuteAction)
        {
            var result = Model.ExternalEngine.Execute();

            if (result == ExecuteResult.Continue)
            {
                Model.BaseModel.Plan(postExecuteAction);
                return;
            }

            if (result == ExecuteResult.Restart)
            {
                // todo: implement
                Model.BaseModel.Plan(postExecuteAction);
                return;
            }

            Model.Dispatcher.Invoke(new Action(() => Model.InstallationState = InstallationState.AskingExternalIssueRetry));
        }
Example #2
0
 /// <summary>
 /// Starts planning the appropriate action.
 /// </summary>
 /// <param name="action">Action to plan.</param>
 public void Plan(InstallActions action)
 {
     PlannedAction = action;
     Engine.Plan(PlannedAction.Value);
 }
 public StartExternalBottomButton(PagedViewModel model, InstallActions postExecuteAction)
     : base(model)
 {
     Command = new RelayCommand(p => ExecuteExternal(postExecuteAction));
 }
Example #4
0
 public PlanBottomButton(PagedViewModel model, InstallActions action)
     : base(model)
 {
     Command = new RelayCommand(param => Model.BaseModel.Plan(action));
 }