public void OnClick(IDialogInterface dialog, int which) { DialogResultHandler?.Invoke(this, result); }
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); }