Beispiel #1
0
        // constractors
        public ChatRoom(string url)
        {
            this.url      = url;
            this.currUser = null;
            presMsgs      = new List <GuiMessage>();
            sort          = new SortByTime();
            filter        = new string[3];
            filter[0]     = "NONE";
            filter[1]     = "";
            filter[2]     = "";
            // initialize the messages handler with a default filter - NONE
            HandlerFactory handler = new HandlerFactory();

            allMessages = handler.createMessageHandler();
            allUsers    = handler.createUserHandler();
            allMessages.filterByNone();
            updatePresMessages();
        }