private static void LoadServerBackground(Object param) { Forms.LoadingUI loading = param as Forms.LoadingUI; System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(LoadDatasBackground)); t.Name = "Data Load Thread"; t.Start(loading); resetEvent.WaitOne(); Globals.MainUI = new Forms.MainUI(); loading.UpdateStatus("Initializing TCP..."); NetworkManager.Initialize(); NetworkManager.TcpListener.Listen(System.Net.IPAddress.Any, Settings.GamePort); loading.Close(true); if (LoadComplete != null) { LoadComplete(null, EventArgs.Empty); } }