示例#1
0
 public void method_1(EntityCounter.Class599 statistics, int multiplicator)
 {
     if (multiplicator == 0)
     {
         return;
     }
     foreach (KeyValuePair <string, EntityCounter.Class599.Class600> keyValuePair in (IEnumerable <KeyValuePair <string, EntityCounter.Class599.Class600> >)statistics.idictionary_0)
     {
         this.method_0(keyValuePair.Key, (uint)((ulong)keyValuePair.Value.uint_0 * (ulong)multiplicator));
     }
 }
示例#2
0
        public void Visit(DxfInsert insert)
        {
            if (!this.method_0((DxfEntity)insert))
            {
                return;
            }
            this.class599_0.method_0("ATTRIB", (uint)insert.Attributes.Count);
            if ((this.handlingFlags_0 & EntityCounter.HandlingFlags.FollowInserts) == (EntityCounter.HandlingFlags) 0)
            {
                return;
            }
            DxfBlock block = insert.Block;

            if (block == null)
            {
                return;
            }
            int multiplicator = (int)insert.ColumnCount * (int)insert.RowCount;

            EntityCounter.Class599 class5990_1;
            if (!this.idictionary_0.TryGetValue(block, out class5990_1))
            {
                EntityCounter.Class599   class5990_2 = this.class599_0;
                EntityCounter.SpaceFlags spaceFlags0 = this.spaceFlags_0;
                try
                {
                    this.class599_0   = new EntityCounter.Class599();
                    this.spaceFlags_0 = EntityCounter.SpaceFlags.AllSpaces;
                    foreach (DxfEntity entity in (DxfHandledObjectCollection <DxfEntity>)block.Entities)
                    {
                        entity.Accept((IEntityVisitor)this);
                    }
                }
                finally
                {
                    class5990_1               = this.class599_0;
                    this.class599_0           = class5990_2;
                    this.spaceFlags_0         = spaceFlags0;
                    this.idictionary_0[block] = class5990_1;
                }
            }
            this.class599_0.method_1(class5990_1, multiplicator);
        }
示例#3
0
 public void Reset()
 {
     this.class599_0 = new EntityCounter.Class599();
 }