Exemple #1
0
        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);
        }
Exemple #2
0
        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);
            }
        }