void OnBuddyChanged(BuddyEventArgs e) { Dispatcher.Invoke(() => { AddGroupName(e.Buddy.Properties.GroupName); chatControl.ContactList.Refresh(); }); }
private void client_BuddyOffline(object sender, BuddyEventArgs e) { AudioAlert.Instance.Play(AudioAlertType.BuddyOffline); OnBuddyChanged(e); }
private void client_BuddyUpdated(object sender, BuddyEventArgs e) { OnBuddyChanged(e); }
void OnBuddyTyping(BuddyEventArgs e) { ChangeStatus(String.Format("{0} " + Translation.Instance.ChatWindow_IsTyping, e.Buddy.DisplayName)); statusResetTimer.Stop(); statusResetTimer.Start(); }
void chatSession_BuddyJoined(object sender, BuddyEventArgs e) { eventQueue.Enqueue(() => OnBuddyJoined(e.Buddy)); }
void chatSession_BuddyTyping(object sender, BuddyEventArgs e) { eventQueue.Enqueue(() => OnBuddyTyping(e)); }
void chatClient_BuddyUpdated(object sender, BuddyEventArgs e) { OnContactListUpdated(); }
void chatSession_LikeReceived(object sender, BuddyEventArgs e) { eventQueue.Enqueue(() => OnLikeReceived(e.Buddy)); }