Exemplo n.º 1
0
        private void ExecuteMainDialog(IStatePropertyAccessor <DialogState> dlgstate)
        {
            var waterFallSteps = new WaterfallStep[]
            {
                RunMainDialog,
                EndMainDlg
            };

            _dialogSet = new DialogSet(dlgstate);
            _dialogSet.Add(new TextPrompt("text"));
            _dialogSet.Add(new NumberPrompt <int>("number"));
            _dialogSet.Add(new ChoicePrompt("choice"));
            _dialogSet.Add(new ExecuteChildDialog(nameof(UserForm), UserForm.PromptProperties()));
            _dialogSet.Add(new ExecuteChildDialog(nameof(PizzaOrder), PizzaOrder.PromptProperties()));
            _dialogSet.Add(new ExecuteChildDialog(nameof(RootDialog), RootDialog.PromptProperties()));
            _dialogSet.Add(new WaterfallDialog("main", waterFallSteps));
        }