Ejemplo n.º 1
0
 public void SendMessage(myMessage message)
 {
     if (NewEventMessage != null)
     {
         // This will send an instance of News to each subscriber of local news
         NewEventMessage(message);
     }
 }
Ejemplo n.º 2
0
        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;

            }
        }
Ejemplo n.º 3
0
        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;
            }
        }
Ejemplo n.º 4
0
 public virtual void OnReceiveMessage(myMessage e)
 {
     Console.WriteLine("MessageReceiver received: " + e._Text);
 }
Ejemplo n.º 5
0
 public virtual void OnReceiveMessage(myMessage e)
 {
     Console.WriteLine("MessageReceiver received: " + e._Text);
 }
Ejemplo n.º 6
0
 public void SendMessage(myMessage message)
 {
     if (NewEventMessage != null)
     {
         // This will send an instance of News to each subscriber of local news
         NewEventMessage(message);
     }
 }