Example #1
0
        public static bool Confirm(Action <ConfirmOptions> configure)
        {
            var options = new ConfirmOptions();

            configure(options);

            return(Confirm(options));
        }
Example #2
0
        public static bool Confirm(string message, bool?defaultValue = default)
        {
            var options = new ConfirmOptions
            {
                Message      = message,
                DefaultValue = defaultValue
            };

            return(Confirm(options));
        }
Example #3
0
        public static bool Confirm(ConfirmOptions options)
        {
            using var form = new ConfirmForm(options);

            return(form.Start());
        }