Example #1
0
 public void ShowMessage(string message, string title, PopupDialogButtons buttons)
 {
     PopupView.Model.Title   = title;
     PopupView.Model.Message = message;
     PopupView.Model.Buttons = buttons;
     ShowMessage();
 }
Example #2
0
 private void ButtonClicked(PopupDialogButtons button)
 {
     ClickedButton = button;
     ClosePopup();
 }
Example #3
0
 /// <summary>
 /// Popups the response.
 /// </summary>
 /// <param name="button">The button.</param>
 public void PopupResponse(PopupDialogButtons button)
 {
     System.Windows.MessageBox.Show(button.ToString() + " button pushed");
     Events.GetEvent <PopupDialogClickEvent>().Unsubscribe(e => PopupResponse(e));
 }