void CommunicationManager_TwitterStatusReceived(object sender, StatusEventArgs e) { Dispatcher.Invoke(DispatcherPriority.Normal, (Action)(() => { lock (this) { if (m_statusList.Count == 0 || m_statusList.All(s => !s.StatusID.Equals(e.Status.StatusID))) { m_statusList.Add(e.Status); TweetsListView.Items.Insert(0, e.Status); UnreadTweetsCount++; } } })); }
private static void OnStatusReceived(StatusEventArgs e) { if (StatusReceived != null) { StatusReceived(typeof(CommunicationManager), e); } }
void CommunicationManager_StatusReceived(object sender, StatusEventArgs e) { LastActiveFriends.AddUser(e.Status.User); }