Beispiel #1
0
        /// <summary>
        /// Reset the _tableEnum field to the table being displayed, if any
        /// </summary>
        private void ResetTableEnum()
        {
            bool bFound = false;
            int  index  = 0;

            _tableEnum = null;
            _tableEnum = Session.Current.Catalog.EnumerateTables(
                TableFilterFactory.FilterAllTables());

            while (_tableEnum.MoveNext())
            {
                index++;
                if (String.Equals(_tableEnum.Current.Alias, _tableAlias))
                {
                    bFound = true;
                    break;
                }
            }
            if (!bFound)
            {
                _tableEnum.Reset();
                _tableEnum.MoveNext();
                _tableIndex = 1;
            }
            else
            {
                _tableIndex = index;
            }
        }
Beispiel #2
0
        /// <summary>
        /// Reset the _tableEnum field to the table being displayed, if any
        /// </summary>
        private void ResetTableEnum()
        {
            bool bFound = false;
            int index = 0;

            _tableEnum = null;
            _tableEnum = Session.Current.Catalog.EnumerateTables(
                TableFilterFactory.FilterAllTables());

            while (_tableEnum.MoveNext())
            {
                index++;
                if (String.Equals(_tableEnum.Current.Alias, _tableAlias))
                {
                    bFound = true;
                    break;
                }
            }
            if (!bFound)
            {
                _tableEnum.Reset();
                _tableEnum.MoveNext();
                _tableIndex = 1;
            }
            else
            {
                _tableIndex = index;
            }
        }