public GUILobbyRoom(GUIWindows.GUI parent_, Communication com_) { InitializeComponent(); // attach parent and controller parent = parent_; ctrl = new Controllers.LobbyRoomController(this, com_); // initialize unitialized data chatWindowEmpty = true; listGameRoomsGUI = new List <Models.GameRoomGUIModel>(); // initialize the timer responsible with checking for messages from the server checkServerResponse.Interval = new TimeSpan(0, 0, 0, 0, 100); checkServerResponse.Tick += checkServerResponse_Tick; // start loading page data ctrl.loadPageData(); // start listening beginListening(); }