private void Form1_FormClosed(object sender, FormClosedEventArgs e) { m_rfidObj?.BeginCapture(false); UsbNotification.UnregisterUsbDeviceNotification(); _cancelInventory?.Cancel(); { if (this.checkBox_cfg_savePasswordLong.Checked == false) { this.textBox_cfg_password.Text = ""; } ClientInfo.Config.Set("global", "ui_state", this.UiState); ClientInfo.Config.Set("global", "replication_start", this.textBox_replicationStart.Text); ClientInfo.Finish(); } EndChannel(); EndRemotingServer(); _driver.ReleaseDriver(); }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { _driver.ReleaseDriver(); }