public void SendMessage(myMessage message) { if (NewEventMessage != null) { // This will send an instance of News to each subscriber of local news NewEventMessage(message); } }
public override void OnReceiveMessage(myMessage e) { string sMsg; sMsg = "Message received Code: " + e._Code + " Text: " + e._Text + "\r\n"; Console.WriteLine(sMsg); enButtonPresed ButtonCode = (enButtonPresed)e._Code; string MessaggioLog = string.Empty; switch (ButtonCode) { case enButtonPresed.ButtonPhone: break; case enButtonPresed.ButtonSMS: break; } }
public virtual void OnReceiveMessage(myMessage e) { Console.WriteLine("MessageReceiver received: " + e._Text); }