private void cmdRead_Click(object sender, EventArgs e)
        {
            Boolean vRet       = true;
            int     vErrorCode = 0;

            lblMessage.Text = "Waiting...";
            Application.DoEvents();

            if (!bpc.EnableDevice(Program.gMachineNumber, 0)) // 0 : false
            {
                lblMessage.Text = util.gstrNoDevice;
                return;
            }

            GCHandle gh = GCHandle.Alloc(dbBellInfoList, GCHandleType.Pinned);
            IntPtr   AddrOfmlngBellInfo = gh.AddrOfPinnedObject();
            int      nAddr = AddrOfmlngBellInfo.ToInt32();

            vRet = bpc.GetBellTime(Program.gMachineNumber, ref mBellCount, ref nAddr);

            if (vRet)
            {
                ShowValue();
                lblMessage.Text = "Success!";
            }
            else
            {
                bpc.GetLastError(ref vErrorCode);
                lblMessage.Text = util.ErrorPrint(vErrorCode);
            }

            gh.Free();
            bpc.EnableDevice(Program.gMachineNumber, 1); // 1 : true
        }