private void OnDialogClosed(ConfirmDialogButton button)
 {
     if (DialogClosed != null)
     {
         DialogClosed(this, new ConfirmDialogClosedEventArgs(button));
     }
 }
 public ConfirmDialogClosedEventArgs(ConfirmDialogButton button)
 {
     _button = button;
 }
 private bool IsButton(ConfirmDialogButton button)
 {
     return((this.Buttons & button) == button);
 }