/// <summary> /// /// </summary> /// <param name="friend"></param> /// <param name="status"></param> public void OnFriendChangeStatus(Friend friend, OnlineStatus status) { if (friend.Equals(this.originalFriend)) { if (status != OnlineStatus.Offline) this.WriteEventToConvoBox(friend.Username + " has changed status to " + status.ToString()); else this.WriteEventToConvoBox(friend.Username + " has signed off"); } }
/// <summary> /// /// </summary> /// <param name="friend"></param> public void OnFriendLeave(Friend friend) { // if the original friend has left, set the need reconnect flag to true. if (friend.Equals(this.originalFriend)) { this.conversationConnected = false; } this.WriteEventToConvoBox(friend.Username + " has left the conversation"); }
/// <summary> /// /// </summary> /// <param name="friend"></param> /// <param name="newName"></param> public void OnFriendChangeDisplayName(Friend friend, string newName) { if (friend.Equals(this.originalFriend)) this.Text = newName; }