Пример #1
0
        private void ProcessSection(string path, string section, XmlNode node)
        {
            // see whether section is encrypted
            bool isEncrypted            = node.FirstChild != null && String.Equals(node.FirstChild.Name, "EncryptedData", StringComparison.InvariantCultureIgnoreCase);
            ConfigSectionEventArgs args = new ConfigSectionEventArgs(path, section, isEncrypted);

            // add to list
            _foundSections.Add(args);
            // raise event
            _worker.ReportProgress(0, args);
        }
Пример #2
0
 private void _crawler_SectionFound(object sender, ConfigSectionEventArgs args)
 {
     _sections.Add(args.ConfigSection);
 }