Пример #1
0
        private CustomMessageBox.DialogResult CustomMessageBox_ShowEvent(string text, string caption = "",
                                                                         CustomMessageBox.MessageBoxButtons buttons = CustomMessageBox.MessageBoxButtons.OK,
                                                                         CustomMessageBox.MessageBoxIcon icon       = CustomMessageBox.MessageBoxIcon.None, string YesText = "Yes",
                                                                         string NoText = "No")
        {
            var ans = MainPage.DisplayAlert(caption, text, "OK", "Cancel");

            return(CustomMessageBox.DialogResult.OK);
        }
Пример #2
0
        private CustomMessageBox.DialogResult CustomMessageBox_ShowEvent(string text, string caption = "",
                                                                         CustomMessageBox.MessageBoxButtons buttons = CustomMessageBox.MessageBoxButtons.OK,
                                                                         CustomMessageBox.MessageBoxIcon icon       = CustomMessageBox.MessageBoxIcon.None, string YesText = "Yes",
                                                                         string NoText = "No")
        {
            var ans = ShowMessageBoxAsync(text, caption);

            //if (ans)
            return(CustomMessageBox.DialogResult.OK);

            //return CustomMessageBox.DialogResult.Cancel;
        }