Exemplo n.º 1
0
        public LayerItem( XElement xml )
        {
            string propertiesTypeAsText = xml.CertainAttribute( @"ClrTypeOfProperties" ).Value ;
            Type typeOfProperties = Type.GetType( propertiesTypeAsText ) ;
            string justTheName = typeOfProperties.Name ;

            _properties = (ItemProperties)xml.Element( justTheName ).DeserializedAs( typeOfProperties ) ;
        }
Exemplo n.º 2
0
 void copyPropertiesFromOldToNew(Item old, ItemProperties @new)
 {
     convertCustomProperties( old.CustomProperties, @new.CustomProperties );
     @new.Id = old.Id ;
     @new.Name = old.Name ;
     @new.Position = old.Position ;
     @new.Visible = old.Visible ;
 }
Exemplo n.º 3
0
 public FloatAnimationBehaviour(ItemProperties itemProperties, FloatAnimationBehaviourProperties behaviourProperties)
 {
     _propertiesThisAppliesTo = itemProperties ;
     _behaviourProperties = behaviourProperties ;
 }