Exemplo n.º 1
0
        public void Add(T t, DateTime dtLoc, PwObjectPoolEx pool)
        {
            if (t == null)
            {
                Debug.Assert(false); return;
            }

            m_l.Add(t);

            if (dtLoc > m_dtLocationChanged)
            {
                m_dtLocationChanged = dtLoc;
                m_poolAssoc         = pool;
            }
        }
Exemplo n.º 2
0
        public static PwObjectPoolEx FromGroup(PwGroup pg)
        {
            PwObjectPoolEx p = new PwObjectPoolEx();

            if (pg == null)
            {
                Debug.Assert(false); return(p);
            }

            ulong uFreeId = 2;             // 0 = "not found", 1 is a hole

            p.m_dUuidToId[pg.Uuid] = uFreeId;
            p.m_dIdToItem[uFreeId] = pg;
            uFreeId += 2;             // Make hole

            p.AddGroupRec(pg, ref uFreeId);
            return(p);
        }