public static bool Confirm(Action <ConfirmOptions> configure) { var options = new ConfirmOptions(); configure(options); return(Confirm(options)); }
public static bool Confirm(string message, bool?defaultValue = default) { var options = new ConfirmOptions { Message = message, DefaultValue = defaultValue }; return(Confirm(options)); }
public static bool Confirm(ConfirmOptions options) { using var form = new ConfirmForm(options); return(form.Start()); }