ParseSignatureDefinitions( XmlReader reader, Collection <XpsSignatureDefinition> sigDefCollection ) { bool endLoop = false; while (!endLoop && reader.Read()) { if (reader.NodeType == XmlNodeType.Element && reader.Name == XpsS0Markup.SignatureDefinition ) { XpsSignatureDefinition sigDef = new XpsSignatureDefinition(); sigDef.ReadXML(reader); sigDefCollection.Add(sigDef); } if (reader.NodeType == XmlNodeType.EndElement && reader.Name == XpsS0Markup.SignatureDefinitions ) { endLoop = true; } } }
AddSignatureDefinition( XpsSignatureDefinition signatureDefinition ) { EnsureSignatureDefinitions(); _signatureDefinitions.Add(signatureDefinition); _sigCollectionDirty = true; }