static void Run(int port) { form = new ClientForm(); new Thread( () => { Control(port); return; }).Start(); Application.Run(form); }
static void Run(int port) { var strategy = new Strategy(new CVARCTranslator()).MoveTo(-60, -55).End(); form = new ClientForm(); new Thread( () => { Control(port, strategy); }).Start(); Application.Run(form); }
static void Run(int port, bool debug) { form = new ClientForm(); new Thread( () => { if (debug) { Control(port); return; } try { Control(port); } catch (Exception e) { Console.WriteLine(e.Message); } }).Start(); Application.Run(form); }