コード例 #1
0
ファイル: App.xaml.cs プロジェクト: 15831944/mp
        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;
        }