string GetCode() { var ui = new UI.InputDialog() { Prompt = Prompt ?? GetPrompt(), History = History ?? Res.History, Title = Title ?? Res.Me, UseLastHistory = true, }; return(ui.Show() ? ui.Text : null); }
protected override void BeginProcessing() { var ui = new UI.InputDialog() { Prompt = Prompt ?? GetPrompt(), History = History ?? Res.History, Title = Title ?? Res.Me, UseLastHistory = true, }; var code = ui.Show(); if (!string.IsNullOrEmpty(code)) { A.Psf.Act(code, new ConsoleOutputWriter(Entry.CommandInvoke1.Prefix + ": " + code), false); } }