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(); } }
public MessageView(MobilePhoneCommon.SMS.Message msg) { Name = msg.Name; Text = msg.Body; }