private void CreateConfig()
{
this.ConfigFileLocation = Path.Combine(this.ThemeDirectory, "Theme.config");
using (var xml = new XmlTextWriter(this.ConfigFileLocation, Encoding.UTF8))
{
xml.WriteStartDocument(true);
xml.Formatting = Formatting.Indented;
xml.Indentation = 4;
xml.WriteStartElement("configuration");
xml.WriteStartElement("appSettings");
this.AddKey(xml, "ThemeName", this.Info.ThemeName);
this.AddKey(xml, "Author", this.Info.Author);
this.AddKey(xml, "AuthorUrl", this.Info.AuthorUrl);
this.AddKey(xml, "AuthorEmail", this.Info.AuthorEmail);
this.AddKey(xml, "ConvertedBy", this.Info.ConvertedBy);
this.AddKey(xml, "ReleasedOn", this.Info.ReleasedOn);
this.AddKey(xml, "Version", this.Info.Version);
this.AddKey(xml, "Category", this.Info.Category);
this.AddKey(xml, "Responsive", this.Info.Responsive ? "Yes" : "No");
this.AddKey(xml, "Framework", this.Info.Framework);
this.AddKey(xml, "Tags", string.Join(",", this.Info.Tags));
this.AddKey(xml, "HomepageLayout", this.Info.HomepageLayout);
this.AddKey(xml, "DefaultLayout", this.Info.DefaultLayout);
xml.WriteEndElement(); //appSettings
xml.WriteEndElement(); //configuration
xml.Close();
}
}