Exemplo n.º 1
0
 internal void FromXml(XElement x, IFromXmlContext ctx)
 {
     Row = int.Parse(x.Attribute("Row").Value);
     StartColumn = int.Parse(x.Attribute("StartColumn").Value);
     Columns = int.Parse(x.Attribute("Columns").Value);
     Title = x.Attribute("Title")?.Value;
     Content = ctx.GetPart(Content, x.Elements().Single());
 }
Exemplo n.º 2
0
 internal void FromXml(XElement x, IFromXmlContext ctx)
 {
     Row         = int.Parse(x.Attribute("Row").Value);
     StartColumn = int.Parse(x.Attribute("StartColumn").Value);
     Columns     = int.Parse(x.Attribute("Columns").Value);
     Title       = x.Attribute("Title")?.Value;
     Content     = ctx.GetPart(Content, x.Elements().Single());
 }
Exemplo n.º 3
0
 internal void FromXml(XElement x, IFromXmlContext ctx)
 {
     Row         = int.Parse(x.Attribute("Row").Value);
     StartColumn = int.Parse(x.Attribute("StartColumn").Value);
     Columns     = int.Parse(x.Attribute("Columns").Value);
     Title       = x.Attribute("Title")?.Value;
     IconName    = x.Attribute("IconName")?.Value;
     IconColor   = x.Attribute("IconColor")?.Value;
     Style       = (PanelStyle)(x.Attribute("Style")?.Let(a => Enum.Parse(typeof(PanelStyle), a.Value)) ?? PanelStyle.Light);
     Content     = ctx.GetPart(Content, x.Elements().Single());
 }
Exemplo n.º 4
0
 internal void FromXml(XElement x, IFromXmlContext ctx)
 {
     Row                  = int.Parse(x.Attribute("Row") !.Value);
     StartColumn          = int.Parse(x.Attribute("StartColumn") !.Value);
     Columns              = int.Parse(x.Attribute("Columns") !.Value);
     Title                = x.Attribute("Title")?.Value;
     IconName             = x.Attribute("IconName")?.Value;
     IconColor            = x.Attribute("IconColor")?.Value;
     InteractionGroup     = x.Attribute("InteractionGroup")?.Value.ToEnum <InteractionGroup>();
     CustomColor          = x.Attribute("CustomColor")?.Value;
     UseIconColorForTitle = x.Attribute("UseIconColorForTitle")?.Let(a => bool.Parse(a.Value)) ?? false;
     Content              = ctx.GetPart(Content, x.Elements().Single());
 }