Example #1
0
 public void WriteContent(XmlWriter writer, Configuration config, ConfigurationSaveMode mode, bool writeElem)
 {
     foreach (ConfigInfoCollection col in new object[] { Sections, Groups })
     {
         foreach (string key in col)
         {
             ConfigInfo cinfo = col [key];
             if (cinfo.HasDataContent(config))
             {
                 cinfo.WriteData(config, writer, mode);
             }
         }
     }
 }
Example #2
0
 public override bool HasDataContent(Configuration config)
 {
     foreach (ConfigInfoCollection col in new object[] { Sections, Groups })
     {
         foreach (string key in col)
         {
             ConfigInfo cinfo = col [key];
             if (cinfo.HasDataContent(config))
             {
                 return(true);
             }
         }
     }
     return(false);
 }