Esempio n. 1
0
 static void Run(int port)
 {
     form = new ClientForm();
     new Thread(
         () =>
         {
             Control(port);
             return;
         }).Start();
     Application.Run(form);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
        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);
        }