private void AnalysMsg(Phone.Message message) { if (!users.Contains(message.User)) { users.Add(message.User); comboBox1.Items.Add(message.User); } }
private void OnSMSReceived(Phone.Message message) { if (InvokeRequired) { Invoke(new Action <Phone.Message>(OnSMSReceived), message); return; } AnalysMsg(message); }