void InitializeDriver() { try { InitializeDriverResult result = _driver.InitializeDriver(""); // 列出所有可用设备名称 UpdateDeviceList(result.Readers); if (result.Value == -1) { this.ShowMessage(result.ErrorInfo, "red", true); } else { // 一开始就启动捕捉状态 m_rfidObj?.BeginCapture(true); } this.Invoke((Action)(() => { this.UiState = ClientInfo.Config.Get("global", "ui_state", ""); // Properties.Settings.Default.ui_state; })); } catch (Exception ex) { ShowMessageBox(ex.Message); } }
void InitializeDriver() { try { _driver.InitializeDriver(); } catch (Exception ex) { ShowMessageBox(ex.Message); } }