static IXmlNode GetNode(IXmlDocument xmldoc, string tagName) { IXmlNodeList nodes = GetNodes(xmldoc, tagName); IXmlNode node = GetNode(nodes, 0); return(node); }
static IXmlNode GetNode(IXmlNodeList nodes, uint index) { IXmlNode node; ComFunctions.CheckHRESULT(nodes.Item(index, out node)); return(node); }
static void UpdateText(IXmlDocument xmldoc, IPredefinedToastNotificationInfo info) { IXmlNodeList nodes = GetNodes(xmldoc, "text"); Debug.Assert(nodes.Length >= info.Lines.Length); for (uint i = 0; i < info.Lines.Length; i++) { SetNodeValueString(info.Lines[i] ?? string.Empty, xmldoc, GetNode(nodes, i)); } }