예제 #1
0
                // NOTE: Maybe we should't ask for nIndex since this table is supposed to be sorted
                // we could sort ourselves?
                public bool addVTableRecordCache(ushort nIndex, vTableRecordCache vtrc)
                {
                    bool bResult = true;

                    if (nIndex > m_recs)
                    {
                        bResult = false;
                        throw new ArgumentOutOfRangeException("nIndex is greater than the number of records + 1.");
                    }

                    m_entry.Insert(nIndex, vtrc);

                    return(bResult);
                }
예제 #2
0
                public bool addVTableRecordCache(ushort nIndex, ushort yPelHeight, short yMax, short yMin)
                {
                    bool bResult = true;

                    if (nIndex > m_recs)
                    {
                        bResult = false;
                        throw new ArgumentOutOfRangeException("nIndex is greater than the number of records + 1.");
                    }

                    vTableRecordCache vtrc = new vTableRecordCache(yPelHeight, yMax, yMin);

                    bResult = addVTableRecordCache(nIndex, vtrc);

                    return(bResult);
                }
예제 #3
0
                public bool addVTableRecordCache( ushort nIndex, ushort yPelHeight, short yMax, short yMin )
                {
                    bool bResult = true;

                    if( nIndex > m_recs )
                    {
                        bResult = false;
                        throw new ArgumentOutOfRangeException( "nIndex is greater than the number of records + 1." );
                    }

                    vTableRecordCache vtrc = new vTableRecordCache( yPelHeight, yMax, yMin );

                    bResult = addVTableRecordCache( nIndex, vtrc );                    

                    return bResult;
                }
예제 #4
0
                // NOTE: Maybe we should't ask for nIndex since this table is supposed to be sorted
                // we could sort ourselves?
                public bool addVTableRecordCache( ushort nIndex,  vTableRecordCache vtrc )
                {
                    bool bResult = true;

                    if( nIndex > m_recs )
                    {
                        bResult = false;
                        throw new ArgumentOutOfRangeException( "nIndex is greater than the number of records + 1." );
                    }

                    m_entry.Insert( nIndex, vtrc );                    

                    return bResult;
                }