/// <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); }
private void btnMSRClose_Click(object sender, EventArgs e) { msr.ReleaseDevice(); msr.Close(); }