Example #1
0
        public async Task <Result <IActionStep> > EvaluateStepAsync(IActionStep step, string sourceAction)
        {
            await VSPackage.TaskFactory.SwitchToMainThreadAsync();

            var transients = GetMacroTransients();
            var evaluator  = new MacroEvaluator(ProjectProperties, transients, RemoteEnvironment, _project.Options.DebuggerOptions, _dirtyProfile);

            var actionEvalEnv = new ActionEvaluationEnvironment("", "", _dirtyProfile.General.RunActionsLocally,
                                                                new DebugServer.IPC.CapabilityInfo(default, default, default), _dirtyProfile.Actions);
Example #2
0
 private void OnActionStepStarted(IActionStep actionStep)
 {
     BeginInvoke(new OnActionStepStarted(SyncActionStepStarted), new object[] { actionStep });
 }
Example #3
0
 private void OnActionStepCompleted(IActionStep actionStep, bool done)
 {
     if (actionStep is GameStep_Shopping && done)
     {
         BeginInvoke(new OnSaveItemsList(SaveGameItemsList), new object[] { true });
     }
     BeginInvoke(new OnActionStepStarted(SyncActionStepCompleted), new object[] { actionStep });
 }
Example #4
0
 private void ActionLogMessage(IActionStep actionStep, string message)
 {
     string stepType = actionStep.GetType().ToString();
     string stepName = stepType.Substring(stepType.IndexOf('_') + 1);
     bool woStepName = !string.IsNullOrEmpty(message) && message[0] == '\t';
     message = string.Format("{0}{1}", woStepName ? "" : stepName + ": ", message);
     tbGeneralLogs.BeginInvoke(new OutLogData(OutActionLogMessage), new object[] { message });
 }
Example #5
0
 private void SyncActionStepStarted(IActionStep actionStep)
 {
     string stepType = actionStep.GetType().ToString();
     lblActionInProgress.Text = stepType.Substring(stepType.IndexOf('_') + 1);
     lblActionInProgress.ToolTipText = DateTime.Now.ToString();
 }
Example #6
0
 private void SyncActionStepCompleted(IActionStep actionStep)
 {
     lblActionInProgress.ToolTipText = string.Empty;
     lblActionInProgress.Text = "---";
 }
Example #7
0
 public void OutActionLogMessage(IActionStep actionStep, string message)
 {
     if (OutActionsLogs && OnActionLogMessage != null)
     {
         OnActionLogMessage(actionStep, message);
     }
 }