/// <summary> /// Removes the member with the specified id. /// </summary> /// <param name="id">The id to remove</param> public static void removeMember(String id) { ChatRoomMember m = new ChatRoomMember(id, null); members.Remove(m); Common.mainGUI.remove(m); }
/// <summary> /// Adds a member to the chat room. /// </summary> /// <param name="id">The id of the member to add</param> /// <param name="name">The name of the member</param> public static void addMember(String id, String name) { ChatRoomMember member = new ChatRoomMember(id, name); members.Add(member); Common.mainGUI.add(member); }
public int CompareTo(ChatRoomMember obj) { return(id.CompareTo(obj.id)); }
public bool Equals(ChatRoomMember other) { return(id.Equals(other.id)); }