private MessageGroup ParseGroupNode(XmlElement groupNode) { var group = new MessageGroup { Name = groupNode.GetAttribute("name") }; foreach (var msgNode in groupNode.ChildNodes.OfType <XmlElement>().Where(e => e.Name.Equals("msg"))) { group.Messages.Add(ParseMessageNode(msgNode)); } group.Messages.ForEach(e => e.Group = group); return(group); }
private MessageGroup ParseGroupNode(XmlElement groupNode) { var group = new MessageGroup {Name = groupNode.GetAttribute("name")}; foreach (var msgNode in groupNode.ChildNodes.OfType<XmlElement>().Where(e => e.Name.Equals("msg"))) { group.Messages.Add(ParseMessageNode(msgNode)); } group.Messages.ForEach(e => e.Group = group); return group; }