Example #1
0
        // Token: 0x06002E17 RID: 11799 RVA: 0x000D0404 File Offset: 0x000CE604
        protected void AddSorted(FixedSOMSemanticBox box)
        {
            int num = this._semanticBoxes.Count - 1;

            while (num >= 0 && box.CompareTo(this._semanticBoxes[num]) != 1)
            {
                num--;
            }
            this._semanticBoxes.Insert(num + 1, box);
            this._UpdateBoundingRect(box.BoundingRect);
        }
Example #2
0
        protected void AddSorted(FixedSOMSemanticBox box)
        {
            int i = _semanticBoxes.Count - 1;

            for (; i >= 0; i--)
            {
                if (box.CompareTo(_semanticBoxes[i]) == 1)
                {
                    break;
                }
            }
            _semanticBoxes.Insert(i + 1, box);

            _UpdateBoundingRect(box.BoundingRect);
        }
        protected void AddSorted(FixedSOMSemanticBox box)
        {
            int i=_semanticBoxes.Count-1;
            for (; i>=0; i--)
            {
                if (box.CompareTo(_semanticBoxes[i]) == 1)
                {
                    break;
                }
            }
            _semanticBoxes.Insert(i+1, box);

            _UpdateBoundingRect(box.BoundingRect);
            
        }