static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); main = new mainForm(); serverPool = new ServerPool(); settFile = new FileInfo("settings.xml"); if (LoadSettings() == false) { firstExec = true; IPAddress local = LocalIPInput(); string username = LocalUsernameInput(); localUser = new User(local, username); } serverPool.Start(); serverPool.LogIn(); if (Program.firstExec) { main.FirstLogin(); } Application.Run(main); CleanUp(); }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); main = new mainForm(); serverPool = new ServerPool(); settFile = new FileInfo("settings.xml"); if (LoadSettings() == false) { firstExec = true; IPAddress local = LocalIPInput(); string username = LocalUsernameInput(); localUser = new User(local, username); } serverPool.Start(); serverPool.LogIn(); if (Program.firstExec) { main.FirstLogin(); } Application.Run(main); CleanUp(); }