Пример #1
0
        static void Main()
        {
            KeyboardInput c;

            try
            {
                c = new KeyboardInput();

                c.RemoteCallback += new RemoteHandler(Remote);

                c.Start();

                Application.Run();

                c.Stop();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
            finally
            {
                c = null;
            }

            Console.ReadKey();
        }
Пример #2
0
    static void Main()
    {
      KeyboardInput c;

      try
      {
        c = new KeyboardInput();

        c.RemoteCallback += new RemoteHandler(Remote);

        c.Start();

        Application.Run();

        c.Stop();
      }
      catch (Exception ex)
      {
        Console.WriteLine(ex.ToString());
      }
      finally
      {
        c = null;
      }

      Console.ReadKey();
    }