示例#1
0
 public void PushMessage(string propertyName, string value)
 {
     MessageValueChanged?.Invoke(
         this, new MessageValueChangedEventArgs {
         PropertyName = propertyName, Value = value
     }
         );
 }
示例#2
0
 /// <summary>
 /// Event handler for when the messages is updated
 /// </summary>
 public void RaiseMessageValueChanged(string messageTitle, string message, bool isError, string stackTrace = null,
                                      string affirmativeActionButtonContent = null, string negativeActionButtonContent = null)
 {
     MessageValueChanged?.Invoke(this, new UserPromptMessageChangedEventArgs()
     {
         Message      = message,
         StackTrace   = stackTrace,
         IsError      = isError,
         MessageTitle = messageTitle,
         AffirmativeActionButtonContent = affirmativeActionButtonContent,
         NegativeActionButtonContent    = negativeActionButtonContent
     });
 }