/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (RetardedGame game = new RetardedGame("127.0.0.1", 8001)) { mForm = new MainForm(game); mForm.Show(); game.Run(); } }
static void MainFormThread() { while (true) { if (mForm.username != null && mForm.password != null) { using (RetardedGame game = new RetardedGame("127.0.0.1", 8001)) { game.Run(); } } System.Threading.Thread.Sleep(1000); } }