Exemple #1
0
        private void SMSProvider_SMSReceived(MobilePhoneCommon.SMS.Message msg)
        {
            if (IsDisposed)
            {
                return;
            }

            if (InvokeRequired)
            {
                Invoke(new SMSProvider.SMSReceivedHandler(SMSProvider_SMSReceived), msg);
            }
            else

            {
                vAllMsgList.Add(msg);
                if (!vMessageSenders.Contains(msg.Name))
                {
                    vMessageSenders.Add(msg.Name);
                }
                UpdateShownMessageList();
            }
        }
Exemple #2
0
 public MessageView(MobilePhoneCommon.SMS.Message msg)
 {
     Name = msg.Name;
     Text = msg.Body;
 }