// a class for the chatroom // constructor assigns handlers, loggers, adds content to dictionaries from handlers public TestChatroom() { sortType = 0; filterType = 0; userFilter = ""; groupFilter = ""; isAsc = true; messHandler = new MessagesHandler(); usersHandler = new UsersHandler(); this._loggedinUser = null; recievedMessages = (Dictionary <Guid, Message>)messHandler.load(); if (recievedMessages == null) { recievedMessages = new Dictionary <Guid, Message>(); messHandler.save(recievedMessages); } registeredUsers = (Dictionary <String, User>)usersHandler.load(); if (registeredUsers == null) { registeredUsers = new Dictionary <String, User>(); usersHandler.save(registeredUsers); } }