예제 #1
0
        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;
                }
            }
        }
예제 #2
0
 AddSignatureDefinition(
     XpsSignatureDefinition signatureDefinition
     )
 {
     EnsureSignatureDefinitions();
     _signatureDefinitions.Add(signatureDefinition);
     _sigCollectionDirty = true;
 }