Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override bool Close()
        {
            var rc = m_device.ReleaseDevice();

            if (rc == (int)OPOS_Constants.OPOS_SUCCESS)
            {
                rc = m_device.Close();
                if (rc == (int)OPOS_Constants.OPOS_SUCCESS)
                {
                    Status = DeviceStatus.Closed;
                }
            }

            return(Status == DeviceStatus.Closed);
        }
Exemple #2
0
 private void btnMSRClose_Click(object sender, EventArgs e)
 {
     msr.ReleaseDevice();
     msr.Close();
 }