In order to initiate a FormDialog you can just do:
var myform = new FormDialog<CreateNewLeadForm>(new CreateNewLeadForm(), CreateNewLeadForm.BuildForm, FormOptions.PromptInStart, null);
context.Call<CreateNewLeadForm>(myform, FormCompleteCallback);
Take a look to the PizzaBot for an example.
To initiate new dialogs within a Dialog you can do:
- context.Call passing the instance of the new dialog and the completion callback (as in the form)
-
context.Forward where you can forward the message to the child dialog
context.Forward(new MyChildDialog(), ResumeAfterChildDialog, message, CancellationToken.None);