Esempio n. 1
0
        private void SetDataFromProperties(byte[] bytes)
        {
            int index = 0;

            for (int i = 0; i < this.properties.Count; i++)
            {
                FopteStructure structure = this.properties[i] as FopteStructure;
                structure.ConvertToBytes().CopyTo(bytes, index);
                index += 6;
            }
        }
Esempio n. 2
0
 private void AddItem(FopteStructure item)
 {
     for (int i = 0; i < this.properties.Count; i++)
     {
         FopteStructure structure = this.properties[i] as FopteStructure;
         if (structure.Id == item.Id)
         {
             this.properties[i] = item;
         }
     }
 }
Esempio n. 3
0
        protected void SaveIsVisibleOption(MsofbtOptRecord options)
        {
            FopteStructure property = new FopteStructure
            {
                Id        = (MsoOptions)959,
                UintValue = 131074,
                IsValid   = false,
                IsComplex = false
            };

            options.Add(property);
        }
Esempio n. 4
0
 public void Add(FopteStructure property)
 {
     if (this.ids.Contains(property.Id))
     {
         this.AddItem(property);
     }
     else
     {
         this.ids.Add(property.Id);
         this.properties.Add(property);
     }
 }
Esempio n. 5
0
        public override void Save(MsoContainerRecord spgrContainer, uint shapeId)
        {
            MsoContainerRecord item    = ImageRecordsFactory.CreateContainer(MsoType.SpContainer);
            MsofbtSpRecord     record2 = new MsofbtSpRecord {
                Parent   = spgrContainer,
                Instance = 1750
            };
            MsofbtOptRecord record3 = new MsofbtOptRecord();

            record2.ShapeId = shapeId;
            FopteStructure property = new FopteStructure();

            property = new FopteStructure {
                Id        = MsoOptions.LockAgainstSelect,
                UintValue = Convert.ToUInt32(true),
                IsValid   = true,
                IsComplex = false
            };
            record3.Add(property);
            property = new FopteStructure {
                Id        = MsoOptions.LockAdjustHandles,
                UintValue = Convert.ToUInt32(true),
                IsValid   = true,
                IsComplex = false
            };
            record3.Add(property);
            property = new FopteStructure {
                Id        = MsoOptions.LockAgainstGrouping,
                UintValue = Convert.ToUInt32(true),
                IsValid   = true,
                IsComplex = false
            };
            record3.Add(property);
            property = new FopteStructure {
                Id        = MsoOptions.BlipId,
                UintValue = (uint)base.Id,
                IsValid   = true,
                IsComplex = false
            };
            record3.Add(property);
            record3.Version  = 3;
            record3.Instance = 2;
            item.Add(record2);
            item.Add(record3);
            item.Add(base.GenerateClientAnchorRecord());
            spgrContainer.Add(item);
        }
Esempio n. 6
0
 private void SetInstance()
 {
     if (this.properties.Count > 0)
     {
         int num = 1;
         int id  = (int)(this.properties[0] as FopteStructure).Id;
         for (int i = 1; i < this.properties.Count; i++)
         {
             FopteStructure structure = this.properties[i] as FopteStructure;
             if (structure.Id <= (MsoOptions)id)
             {
                 break;
             }
             num++;
             id = (int)structure.Id;
         }
         base.Instance = num;
     }
 }