Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static Task <bool> Confirmation(string title, string desc) => ConfirmBox.Create(title, desc);
Esempio n. 3
0
 public static Task <bool> Confirmation(string desc = null) => ConfirmBox.Create(desc);