private FileHelperEngine <T> CreateEngineAndClearErrors() { FileHelperEngine <T> engine = new FileHelperEngine <T>(); #endif engine.Encoding = Encoding; ErrorManager.ClearErrors(); engine.ErrorManager.ErrorMode = ErrorManager.ErrorMode; return(engine); }
/** * Enable or disable Nfc, using com.datalogic.device.nfc.NfcManager. */ public void SetEnableNfc(bool enable) { bool previous = ErrorManager.AreExceptionsEnabled(); ErrorManager.EnableExceptions(false); ErrorManager.ClearErrors(); int error = new Com.Datalogic.Device.Nfc.NfcManager().EnableNfcAdapter(enable); if (error != DeviceException.Success) { Log.Error(this.LocalClassName, "Error while setting NFC", ErrorManager.LastError); } ErrorManager.EnableExceptions(previous); }
internal void ResetFields() { mLineNumber = 0; mErrorManager.ClearErrors(); mTotalRecords = 0; }