public void DisableCard() { lock (syncObj) { D160X.DisableCard(); } }
protected override void Dispose(bool disposing) { if (!disposed) { if (disposing) { // 关闭所有事件分配器 Active = false; System.Threading.Thread.Sleep(5000); logger.Info(String.Format("{0}板卡适配器从系统中卸载成功。\n", VersionInfo.Name)); } // Release unmanaged resources D160X.DConf_DisableConfCard(); D160X.DisableCard(); D160X.FreeDRV(); D160X.DJFax_DisableCard(); disposed = true; } base.Dispose(disposing); }