/// <summary> /// The execute. /// </summary> /// <param name="context"> /// The context. /// </param> protected override void Execute(CodeActivityContext context) { // Obtain the runtime value of the Text input argument var atmViewModel = context.GetExtension<IAtmViewModel>(); var atmPrompt = new AtmPrompt { Line = this.Line.Expression == null ? (byte)1 : this.Line.Get(context), Text = this.Text.Get(context), Transition = this.Transition }; atmViewModel.Prompt(atmPrompt); }
/// <summary> /// The execute. /// </summary> /// <param name="context"> /// The context. /// </param> protected override void Execute(CodeActivityContext context) { // Obtain the runtime value of the Text input argument var atmViewModel = context.GetExtension <IAtmViewModel>(); var atmPrompt = new AtmPrompt { Line = this.Line.Expression == null ? (byte)1 : this.Line.Get(context), Text = this.Text.Get(context), Transition = this.Transition }; atmViewModel.Prompt(atmPrompt); }
/// <summary> /// The display prompt. /// </summary> /// <param name="prompt"> /// The prompt. /// </param> public void Prompt(AtmPrompt prompt) { this.prompts.Add(prompt); }
/// <summary> /// The display DisplayRow1. /// </summary> /// <param name="prompt"> /// The prompt. /// </param> public void Prompt(AtmPrompt prompt) { this.Write(TraceLevel.Info, "Prompt[{0}] {1}", prompt.Line, prompt.Text); var index = prompt.Line - 1; this.sideButtonCommands[index] = prompt.Transition; this.displayRow[index] = prompt.Text; this.NotifyChanged("DisplayRow" + prompt.Line); RequeryCommands(); }