Esempio n. 1
0
        public object FindElementByUid(int uid, UnitsTypes type)
        {
            object res = null;

            switch (type)
            {
            case UnitsTypes.Thread:
                ThreadUnit t = FindThreadUnitByUid(uid);
                res = t;
                break;

            case UnitsTypes.DataBlock:
                DataBlockUnit d = FindDataBlock(uid);
                res = d;
                break;
            }

            return(res);
        }
Esempio n. 2
0
 public bool DoesOverlap(UnitsTypes type)
 {
     return(DoesOverlap((int)type));
 }