Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 public int CompareTo(ChatRoomMember obj)
 {
     return(id.CompareTo(obj.id));
 }
Ejemplo n.º 4
0
 public bool Equals(ChatRoomMember other)
 {
     return(id.Equals(other.id));
 }