Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var api = new CF_RL129_API.API("COM2");

            api.Connect();
            var running = true;


            while (running)
            {
                var cmd = Console.ReadLine();

                switch (cmd)
                {
                case "b":
                    api.Beep();
                    break;

                case "r":
                    api.ReadTag();
                    break;

                case "i":
                    api.GetId();
                    break;

                case "copy":
                {
                    Console.WriteLine("Please insert source TAG and press Enter");
                    Console.ReadLine();
                    var tag = api.ReadTag();
                    Console.WriteLine("Please insert target TAG and press Enter");
                    Console.ReadLine();
                    api.WriteTag(tag);
                }

                break;

                case "exit":
                    running = false;
                    break;
                }
            }

            api.Close();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var api = new CF_RL129_API.API("COM2");
            api.Connect();
            var running = true;

            while (running)
            {
                var cmd = Console.ReadLine();

                switch (cmd)
                {
                    case "b":
                        api.Beep();
                        break;
                    case "r":
                        api.ReadTag();
                        break;
                    case "i":
                        api.GetId();
                        break;
                    case "copy":
                        {
                            Console.WriteLine("Please insert source TAG and press Enter");
                            Console.ReadLine();
                            var tag = api.ReadTag();
                            Console.WriteLine("Please insert target TAG and press Enter");
                            Console.ReadLine();
                            api.WriteTag(tag);
                        }

                        break;
                    case "exit":
                        running = false;
                        break;
                }
            }

            api.Close();
        }
Ejemplo n.º 3
0
 public Form1()
 {
     InitializeComponent();
     this.Disposed += Form1_Disposed;
     _API           = new CF_RL129_API.API();
 }
Ejemplo n.º 4
0
 public Form1()
 {
     InitializeComponent();
     this.Disposed += Form1_Disposed;
     _API = new CF_RL129_API.API();
 }