예제 #1
0
        public override bool AskConfirmation(string text)
        {
            bool?result = null;

            Application.InvokeOnMainThread(() => result = ConfirmationDialog.Show(text));
            while (result == null)
            {
                Thread.Sleep(1);
            }
            return(result.Value);
        }
예제 #2
0
        public static bool Show(string text)
        {
            var dialog = new ConfirmationDialog(text);

            return(dialog.Show());
        }