Example #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();
        }
Example #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();
    }