Exemple #1
0
 public void OnClick(IDialogInterface dialog, int which)
 {
     DialogResultHandler?.Invoke(this, result);
 }
Exemple #2
0
        public void ShowDialog(string title, string message, DialogResultHandler resultHandler)
        {
            var result = MessageBox.Show(message, title, MessageBoxButton.YesNo);

            resultHandler?.Invoke(result == MessageBoxResult.OK || result == MessageBoxResult.Yes);
        }