public static async Task <bool> Create(string title, string desc = null) { var gui = new ConfirmBox(title, desc); await gui.LaunchAndWait(); gui.Window.SetAlwaysOnTop(true); gui.Window.MoveTop(); await Task.Delay(100); gui.Window.Activate(); var res = await gui.WaitForInput(); gui.Close(); return(res); }
public static Task <bool> Confirmation(string title, string desc) => ConfirmBox.Create(title, desc);
public static Task <bool> Confirmation(string desc = null) => ConfirmBox.Create(desc);