public static void Main(string[] args) { //catch all for program exceptions try { //create driver of this type ServerGUI driver = new ServerGUI(); if (args.Length == 1) { switch (args[0]) { case "s": case "-server": driver.serverMode(); break; case "c": default: Application.EnableVisualStyles(); Application.Run(new ); break; } } else { driver.clientMode(); } //after initial selection + eventual termination, drop user into Selection Mode driver.switchMode(); } catch (Exception e) { Console.WriteLine(e.Message); } }