public WizardDialogControllerBase(string title, Image icon, Control rightSideWidget, IWizardDialogPage firstPage) { Title = title; Icon = icon; CurrentPage = firstPage; RightSideWidget = rightSideWidget; }
protected override Task <IWizardDialogPage> OnGoNext(CancellationToken token) { switch (CurrentPage) { case ScaffolderTemplateSelectPage _: IWizardDialogPage configPage = GetConfigurePage(args, token); return(Task.FromResult(configPage)); } return(Task.FromException <IWizardDialogPage> (new InvalidOperationException())); }
public ScaffolderDialogController(string title, IWizardDialogPage firstPage, ScaffolderArgs args) : base(title, null, null, firstPage) { this.firstPage = firstPage; this.args = args; }
public WizardDialogController(string title, Image icon, Control rightSideWidget, IWizardDialogPage page) : this(title, icon, rightSideWidget, new IWizardDialogPage [] { page }) { }