private List <Gewerk> ReadServices(XElement el) { List <Gewerk> copy = new List <Gewerk>(); foreach (XElement childEl in el.Elements()) { switch (childEl.Name.ToString()) { case "Gewerk": Gewerk cpyitem = new Gewerk(); cpyitem.Services = childEl.Value; if (cpyitem.IsEmpty()) { SendError(string.Format("Invalid Services")); break; } copy.Add(cpyitem); break; default: AddUnknowNodeError(childEl); break; } } return(copy); }
private void WriteCompanyActions(Gewerk c) { if (c.IsEmpty()) { return; } Writer.WriteElementString("Gewerk", c.Services); }
public FormCpyMain(DataControl dc) : base(dc) { InitializeComponent(); _cpyList = new List <Company>(); _ae = new AvaError("Company DB"); c = new Gewerk(); _glist = new List <Gewerk>(); }
private Gewerk Readgewerk(XElement el) { Gewerk gin = new Gewerk(); foreach (XElement childEl in el.Elements()) { switch (childEl.Name.ToString()) { case "Gewerk": gin.Services = childEl.Value; break; default: AddUnknowNodeError(childEl); break; } } return(gin); }
private void writeservice(Gewerk g) { Writer.WriteStartElement("Gewerke"); Writer.WriteElementString("Gewerk", g.Services); Writer.WriteEndElement(); }
public FormGewerk(DataControl dc, Gewerk c) : base(dc) { InitializeComponent(); _ae = new AvaError("Company Actions"); }