예제 #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);
     }
 }
예제 #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;

            }
        }
예제 #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;
            }
        }
예제 #4
0
 public virtual void OnReceiveMessage(myMessage e)
 {
     Console.WriteLine("MessageReceiver received: " + e._Text);
 }
예제 #5
0
 public virtual void OnReceiveMessage(myMessage e)
 {
     Console.WriteLine("MessageReceiver received: " + e._Text);
 }
예제 #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);
     }
 }