Example #1
0
        //┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
        //  MainForm form
        //┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
        public MainForm()
        {
            InitializeComponent();

            // Call by API
            RFIDAPI = new UHFAPI_NET.UHFAPI_NET();

            // init. parameters.
            init_param();

            // Link for control
            LinkReader();

            // UI link state.
            if (rfidhost_param.link_state)
            {
                pictureBox_link.Image = Properties.Resources.image2;
                PlaySound(SOUND_STATE.SOUND_SUCCESS);


                Firmware_ver = new string(new char[50]);
                RFIDAPI.UHFAPI_GetFirmwareVersion(Firmware_ver);
                label_fw_ver.Text = "Fw. Version : " + Firmware_ver;

                App_ver            = System.Windows.Forms.Application.ProductVersion;
                label_app_ver.Text = "App. Version : " + App_ver;
            }
            else
            {
                pictureBox_link.Image = Properties.Resources.Image1;
            }
        }
Example #2
0
        public static FormLink formLink;     // han 2011.2.12

        public Form1()
        {
            InitializeComponent();

            //this.WindowState = FormWindowState.Maximized;

            label3.Text      = "Off Line";
            label3.ForeColor = Color.Red;

            // show this form
            Show();
            Application.DoEvents();

            FormDialog formDlg = new FormDialog();

            formDlg.Message = "Please Wait ...";
            formDlg.Show();
            Application.DoEvents();

            R900APP = new UHFAPI_NET.UHFAPI_NET();

            // link R900 for control
            LinkReader();

            if (R900_alive)
            {
                label3.Text      = "On Line";
                label3.ForeColor = Color.Green;
            }

            formDlg.Close();
            Application.DoEvents();

            // han 2011.2.7 // invoke inventory window
            // han 2011.2.7 formInventory = new FormInventory();
            // han 2011.2.7 formInventory.ShowDialog();

            // han 2011.2.7 DislinkReader();
            // Application.Exit();
        }
Example #3
0
        public Form1()
        {
            InitializeComponent();

            //this.WindowState = FormWindowState.Maximized;

            label3.Text = "Off Line";
            label3.ForeColor = Color.Red;

            // show this form
            Show();
            Application.DoEvents();

            FormDialog formDlg = new FormDialog();
            formDlg.Message = "Please Wait ...";
            formDlg.Show();
            Application.DoEvents();

            R900APP = new UHFAPI_NET.UHFAPI_NET();

            // link R900 for control
            LinkReader();

            if (R900_alive)
            {
                label3.Text = "On Line";
                label3.ForeColor = Color.Green;

            }

            formDlg.Close();
            Application.DoEvents();

            // han 2011.2.7 // invoke inventory window
            // han 2011.2.7 formInventory = new FormInventory();
            // han 2011.2.7 formInventory.ShowDialog();

            // han 2011.2.7 DislinkReader();
            // Application.Exit();
        }
Example #4
0
 public DotelInterrogator()
 {
     _uhfapi = new UHFAPI_NET.UHFAPI_NET();
     _uhfapi.evtInventoryEPC += new UHFAPI_NET.UHFAPI_NET.InventoryEPCDispacher(OnInventoryEPC);
 }