Пример #1
0
 object IXmlSavable.FromXmlElement(XmlElement element)
 {
     XmlElementConverter.ToCollection(this, element, (ele) =>
     {
         Category category = new Category("Wheat");
         (category as IXmlSavable).FromXmlElement(ele);
         return(category);
     }, bindingName: null);
     return(this);
 }
Пример #2
0
 object IXmlSavable.FromXmlElement(XmlElement element)
 {
     XmlElementConverter.ToSavablePropsOf(this, element.GetChildElements());
     return(this);
 }
Пример #3
0
 public static object FromXmlElement(this BrushBase brush, XmlElement element)
 {
     XmlElementConverter.ToNameFieldsOf(brush, element.GetChildElements(), "pen", "font");
     return(brush);
 }
Пример #4
0
 object IXmlSavable.FromXmlElement(XmlElement element)
 {
     ((IXmlSavable)this).Name = element.Name;
     XmlElementConverter.ToNamePropsOf(this, element.GetChildElements(), "Brush");
     return(this);
 }