예제 #1
0
        static OutputDeviation ReassignEvents(OutputDeviation outputDeviation)
        {
            OutputDeviation newOutputDeviation = new OutputDeviation(outputDeviation.Name);

            newOutputDeviation.Children = ReassignEvents(outputDeviation.Children);

            return(newOutputDeviation);
        }
예제 #2
0
        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);
        }