예제 #1
0
        private FileHelperEngine <T> CreateEngineAndClearErrors()
        {
            FileHelperEngine <T> engine = new FileHelperEngine <T>();
#endif
            engine.Encoding = Encoding;

            ErrorManager.ClearErrors();
            engine.ErrorManager.ErrorMode = ErrorManager.ErrorMode;

            return(engine);
        }
예제 #2
0
        /**
         * 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);
        }
예제 #3
0
 internal void ResetFields()
 {
     mLineNumber = 0;
     mErrorManager.ClearErrors();
     mTotalRecords = 0;
 }