private void init()
 {
     this.tableCounter     = 0;
     this.reachEORows      = false;
     this.schemaIsChanged  = false;
     this.currentDataTable = this.tables[this.tableCounter];
     this.hasRows          = this.currentDataTable.Rows.Count > 0;
     this.ReaderIsInvalid  = false;
     this.listener         = new DataTableReaderListener(this);
 }
예제 #2
0
        private void Init()
        {
            _tableCounter     = 0;
            _reachEORows      = false;
            _schemaIsChanged  = false;
            _currentDataTable = _tables[_tableCounter];
            _hasRows          = (_currentDataTable.Rows.Count > 0);
            ReaderIsInvalid   = false;

            // we need to listen to current tables event so create a listener, it will listen to events and call us back.
            _listener = new DataTableReaderListener(this);
        }
예제 #3
0
        private void init()
        {
            tableCounter     = 0;
            reachEORows      = false;
            schemaIsChanged  = false;
            currentDataTable = tables[tableCounter];
            hasRows          = (currentDataTable.Rows.Count > 0);
            ReaderIsInvalid  = false;

// we need to listen to current tables event so create a listener, it will listen to events and call us back.
            listener = new DataTableReaderListener(this);
        }
 public override void Close()
 {
     if (this.isOpen)
     {
         if (this.listener != null)
         {
             this.listener.CleanUp();
         }
         this.listener = null;
         this.schemaTable = null;
         this.isOpen = false;
     }
 }
 public override void Close()
 {
     if (this.isOpen)
     {
         if (this.listener != null)
         {
             this.listener.CleanUp();
         }
         this.listener    = null;
         this.schemaTable = null;
         this.isOpen      = false;
     }
 }
예제 #6
0
        public override void Close()
        {
            if (!_isOpen)
            {
                return;
            }

            // no need to listen to events after close
            _listener?.CleanUp();

            _listener    = null !;
            _schemaTable = null;
            _isOpen      = false;
        }
예제 #7
0
        override public void Close()
        {
            if (!isOpen)
            {
                return;
            }
// no need to listen to events after close
            if (listener != null)
            {
                listener.CleanUp();
            }

            listener    = null;
            schemaTable = null;

            isOpen = false;
        }
 private void init()
 {
     this.tableCounter = 0;
     this.reachEORows = false;
     this.schemaIsChanged = false;
     this.currentDataTable = this.tables[this.tableCounter];
     this.hasRows = this.currentDataTable.Rows.Count > 0;
     this.ReaderIsInvalid = false;
     this.listener = new DataTableReaderListener(this);
 }
예제 #9
0
        private void init() {
            tableCounter = 0;
            reachEORows = false;
            schemaIsChanged = false;
            currentDataTable = tables[tableCounter];
            hasRows = (currentDataTable.Rows.Count > 0);
            ReaderIsInvalid = false;
 
// we need to listen to current tables event so create a listener, it will listen to events and call us back.
            listener = new DataTableReaderListener(this);
        }
예제 #10
0
        override public void Close() {
            if (!isOpen)
                return;
// no need to listen to events after close
            if (listener != null)
                listener.CleanUp();

            listener = null;
            schemaTable = null;

            isOpen = false;
        }
예제 #11
0
        public override void Close()
        {
            if (!_isOpen)
            {
                return;
            }

            // no need to listen to events after close
            if (_listener != null)
            {
                _listener.CleanUp();
            }

            _listener = null;
            _schemaTable = null;
            _isOpen = false;
        }
예제 #12
0
        private void Init()
        {
            _tableCounter = 0;
            _reachEORows = false;
            _schemaIsChanged = false;
            _currentDataTable = _tables[_tableCounter];
            _hasRows = (_currentDataTable.Rows.Count > 0);
            ReaderIsInvalid = false;

            // we need to listen to current tables event so create a listener, it will listen to events and call us back.
            _listener = new DataTableReaderListener(this);
        }