Ejemplo n.º 1
0
        static void Main()
        {
            XBCDRCReceiver c;

            try
            {
                c = new XBCDRCReceiver();

                //c.Configure(null);

                c.RemoteCallback += new RemoteHandler(Remote);

                c.Start();

                System.Windows.Forms.Application.Run();

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

            Console.ReadKey();
        }
    static void Main()
    {
      XBCDRCReceiver c;

      try
      {
        c = new XBCDRCReceiver();

        //c.Configure(null);

        c.RemoteCallback += new RemoteHandler(Remote);

        c.Start();

        System.Windows.Forms.Application.Run();

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

      Console.ReadKey();
    }