Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     _API.Port = cbxPorts.SelectedItem.ToString();
     _API.Connect();
     timer1.Start();
     btnInfo.Enabled  = true;
     btnRead.Enabled  = true;
     btnWrite.Enabled = true;
 }
Exemplo 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();
        }
Exemplo n.º 3
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();
        }