Esempio n. 1
0
 public IMenu WithRepeatPrompt(Prompt prompt)
 {
     RepeatPrompt = prompt;
     return(this);
 }
Esempio n. 2
0
        public IMenuBuilder AddNumberInputMenu(string menuId, Prompt prompt, int maxDigits, Prompt repeatPrompt = null,
                                               int repeats = 3, TimeSpan?timeout = null)
        {
            CheckMenuId(menuId);

            var menu = new NumberInputMenu(prompt, repeatPrompt, repeats, maxDigits, timeout);

            _numberInputMenus[menuId] = menu;

            return(this);
        }