public void Handle(object sender, InteractionRequestedEventArgs <LinkNotification> args) { var notification = args.Notification; if (_window == null) { Msg.Show( notification.Message, notification.Caption, MsgBoxButtons.OK, MsgBoxImage.Default, MsgBoxResult.OK, notification.Link, helpLinkLabel: notification.LinkDescription); } else { Msg.Show( _window, notification.Message, notification.Caption, MsgBoxResult.OK, true, image: MsgBoxImage.Default, helpLink: notification.Link, helpLinkLabel: notification.LinkDescription); } }
public void Handle(object sender, InteractionRequestedEventArgs <Notification> args) { var notification = args.Notification; if (_window == null) { Msg.Show( notification.Message, notification.Caption, MsgBoxButtons.OK, MsgBoxImage.Default, MsgBoxResult.OK); } else { Msg.Show( _window, notification.Message, notification.Caption, MsgBoxResult.OK, true, MsgBoxButtons.OK, MsgBoxImage.Default, MsgBoxResult.OK); } }
public void Handle(object sender, InteractionRequestedEventArgs <Confirmation> args) { var confirmation = args.Notification; var answer = _window == null ? MessageBox.Show(confirmation.Message, confirmation.Caption, MessageBoxButton.YesNo) : MessageBox.Show(_window, confirmation.Message, confirmation.Caption, MessageBoxButton.YesNo); confirmation.Confirmed = answer == MessageBoxResult.Yes; args.Callback(); }
public void Delegate(InteractionRequestedEventArgs <TNotification> args) { Raised(this, args); }