Example #1
0
        void SetCurrentRow(int tableScope, int tableId, int rowScope, int rowId)
        {
            if (rowScope == 0)
            {
                rowScope = _defaultScope;
            }

            if (tableScope == 0)
            {
                tableScope = _defaultScope;
            }

            MorkTableMap ts = GetOrAdd(_mork, Math.Abs(tableScope));
            RowScopeMap  t  = GetOrAdd(ts, Math.Abs(tableId));
            MorkRowMap   rs = GetOrAdd(t, Math.Abs(rowScope));

            _currentCells = GetOrAdd(rs, Math.Abs(rowId));
        }
Example #2
0
        public MorkRowMap GetRows(int rowScope, RowScopeMap table)
        {
            MorkRowMap map;

            return(table.TryGetValue(rowScope, out map) ? map : null);
        }