private void Clean() { #if (DEBUG && DESACTIVAHUELLERO) FPTable.Clear(); FPTable = null; #else ZKFPEng.FreeFPCacheDB(FPCache); FPTable.Clear(); FPTable = null; ZKFPEng.EndEngine(); #endif }
private void btnDesconectar_Click(object sender, EventArgs e) { botonPresionado("btnDesconectar"); fp.OnImageReceived -= fp_OnImageReceived; fp.OnCapture -= fp_OnCapture; fp.FreeFPCacheDB(fpcHandle); fp.EndEngine(); foreach (var ctr in this.Controls) { if (ctr is Button) { ((Button)ctr).Enabled = true; } } btnConectar.Enabled = true; //btnLimpiar_Click(null, null); }