Пример #1
0
 public void Deserialize(ITypeSerializer handler, DataCollection data)
 {
     handler.Deserialize(this, data);
     foreach (DataNode dataNode in data)
     {
         DataItem dataItem = dataNode as DataItem;
         if (dataItem != null)
         {
             DataType     configurationDataType = handler.SerializationContext.Serializer.DataContext.GetConfigurationDataType(dataNode.Name);
             TimelineData item = configurationDataType.Deserialize(handler.SerializationContext, null, dataItem) as TimelineData;
             this.Timelines.Add(item);
         }
     }
     base.ExtendedProperties.Clear();
 }