private static void WriteXML(XmlTextWriter writer) { System.Collections.Specialized.StringCollection strGenericTemplates = new System.Collections.Specialized.StringCollection(); int i = 0; writer.WriteAttributeString(ShowManualAssessmentsInstructions, _showManualAssessmentsInstructions.ToString()); _pluginSettings.WriteXML(writer); foreach (KeyValuePair <string, PluginBase> plugin in Plugins) { plugin.Value.WriteXML(writer); plugin.Value.WriteXMLRedirects(writer); if (plugin.Value.AmGeneric) { strGenericTemplates.Add(((IGenericTemplatePlugin)plugin.Value).GenericTemplateKey); } } writer.WriteAttributeString(GenericTemplatesCount, strGenericTemplates.Count.ToString(CultureInfo.InvariantCulture)); foreach (string str in strGenericTemplates) { writer.WriteAttributeString(GenericTemplate + i, str); i++; } }
private static void WriteXML(XmlTextWriter Writer) { System.Collections.Specialized.StringCollection strGenericTemplates = new System.Collections.Specialized.StringCollection(); int i = 0; Writer.WriteAttributeString(conShowHideTabsParm, ShowHideTabs.ToString()); Writer.WriteAttributeString(conShowManualAssessmentsInstructions, blnShowManualAssessmentsInstructions.ToString()); PluginSettings.WriteXML(Writer); foreach (KeyValuePair <string, PluginBase> plugin in Plugins) { plugin.Value.WriteXML(Writer); plugin.Value.WriteXMLRedirects(Writer); if (plugin.Value.IAmGeneric) { strGenericTemplates.Add(((IGenericTemplatePlugin)plugin.Value).GenericTemplateKey); } } Writer.WriteAttributeString(conGenericTemplatesCount, strGenericTemplates.Count.ToString()); foreach (string str in strGenericTemplates) { Writer.WriteAttributeString(conGenericTemplate + i, str); i += 1; } }