Example #1
0
        public void GetLobbyList()
        {
            WebClient wc = new WebClient();

            try
            {
                string sResponse = wc.DownloadString(Globals.LobbyDataURL);
                Console.WriteLine(sResponse);
                ParseJSON(sResponse);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            DataTable  dt = DataTableTools.ConvertToDatatable(Entries);
            TableEvent te = new TableEvent(dt);

            MMessageBus.LobbyLoaded(this, te);
        }