public int Finit() { int ret = -1; if (_dvr != null) { _dvr.Close(); } if (_lcd != null) { _lcd.Close(); } if (_led != null) { _led.Close(); } if (_iologic != null) { _iologic.Close(); } if (_card != null) { _card.Close(); } if (_weight != null) { _weight.Close(); } return(0); }