Exemplo 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");
 }
Exemplo n.º 2
0
 public void SendCustomMessage(int code, string message)
 {
     CustomMessage = new CustomMessageClass(code, message);
     Messenger.Default.Send(CustomMessage);
 }