static OutputDeviation ReassignEvents(OutputDeviation outputDeviation) { OutputDeviation newOutputDeviation = new OutputDeviation(outputDeviation.Name); newOutputDeviation.Children = ReassignEvents(outputDeviation.Children); return(newOutputDeviation); }
static OutputDeviation ReadOutputDeviation(XmlReader reader) { reader.ReadStartElement(); string name = ""; if (reader.Name == "Name") { name = reader.ReadElementContentAsString(); } OutputDeviation outputDeviation = new OutputDeviation(name); if (reader.Name == "Children") { outputDeviation.Children = ReadChildren(reader); } reader.Read(); return(outputDeviation); }