Ejemplo n.º 1
0
 public void Method2(CustomMessageClass customMessage)
 {
     Message = customMessage.Message;
     Code    = customMessage.Code;
     System.Windows.MessageBox.Show($"Message: {Message}, Code: {Code} has arrived from SenderClass");
 }
Ejemplo n.º 2
0
 public void SendCustomMessage(int code, string message)
 {
     CustomMessage = new CustomMessageClass(code, message);
     Messenger.Default.Send(CustomMessage);
 }