Beispiel #1
0
 public void Add(PropertyIDs propertyID, UInt32 propertyValue)
 {
     ShapeProperty prop = new ShapeProperty();
     prop.PropertyID = propertyID;
     prop.PropertyValue = propertyValue;
     prop.IsBlipID = propertyID == PropertyIDs.BlipId;
     Properties.Add(prop);
 }
Beispiel #2
0
        public void Add(PropertyIDs propertyID, UInt32 propertyValue)
        {
            ShapeProperty prop = new ShapeProperty();

            prop.PropertyID    = propertyID;
            prop.PropertyValue = propertyValue;
            prop.IsBlipID      = propertyID == PropertyIDs.BlipId;
            Properties.Add(prop);
        }
Beispiel #3
0
        public void Add(PropertyIDs propertyID, uint propertyValue)
        {
            ShapeProperty shapeProperty = new ShapeProperty();

            shapeProperty.PropertyID    = propertyID;
            shapeProperty.PropertyValue = propertyValue;
            shapeProperty.IsBlipID      = (propertyID == PropertyIDs.BlipId);
            this.Properties.Add(shapeProperty);
        }
Beispiel #4
0
 public static ShapeProperty Decode(BinaryReader reader)
 {
     ShapeProperty property = new ShapeProperty();
     UInt16 num = reader.ReadUInt16();
     property.PropertyID = (PropertyIDs)(num & 0x3FFF);
     property.IsBlipID = (num & 0x4000) == 0x4000;
     property.IsComplex = (num & 0x8000) == 0x8000;
     property.PropertyValue = reader.ReadUInt32();
     return property;
 }
Beispiel #5
0
        public static ShapeProperty Decode(BinaryReader reader)
        {
            ShapeProperty property = new ShapeProperty();
            UInt16        num      = reader.ReadUInt16();

            property.PropertyID    = (PropertyIDs)(num & 0x3FFF);
            property.IsBlipID      = (num & 0x4000) == 0x4000;
            property.IsComplex     = (num & 0x8000) == 0x8000;
            property.PropertyValue = reader.ReadUInt32();
            return(property);
        }
        public static ShapeProperty Decode(BinaryReader reader)
        {
            ShapeProperty shapeProperty = new ShapeProperty();
            ushort        num           = reader.ReadUInt16();

            shapeProperty.PropertyID    = checked ((PropertyIDs)(num & 16383));
            shapeProperty.IsBlipID      = ((num & 16384) == 16384);
            shapeProperty.IsComplex     = ((num & 32768) == 32768);
            shapeProperty.PropertyValue = reader.ReadUInt32();
            return(shapeProperty);
        }
Beispiel #7
0
        public override void Decode()
        {
            MemoryStream stream = new MemoryStream(Data);
            BinaryReader reader = new BinaryReader(stream);

            Properties.Clear();
            for (int index = 0; index < this.Instance; index++)
            {
                Properties.Add(ShapeProperty.Decode(reader));
            }

            foreach (ShapeProperty property in Properties)
            {
                if (property.IsComplex)
                {
                    int size = (int)property.PropertyValue;
                    property.ComplexData = reader.ReadBytes(size);
                }
            }
        }
Beispiel #8
0
        public override void Decode()
        {
            MemoryStream input        = new MemoryStream(this.Data);
            BinaryReader binaryReader = new BinaryReader(input);

            this.Properties.Clear();
            checked
            {
                for (int i = 0; i < (int)base.Instance; i++)
                {
                    this.Properties.Add(ShapeProperty.Decode(binaryReader));
                }
                foreach (ShapeProperty current in this.Properties)
                {
                    if (current.IsComplex)
                    {
                        int count = (int)current.PropertyValue;
                        current.ComplexData = binaryReader.ReadBytes(count);
                    }
                }
            }
        }