* Add settings class
* Serialize settings to XML when settings window is closed
* Rename Settings class to Config
* Create functions for loading, saving and creating the default config
* Use the new functions to write ConfigXML to disk when settings window is closed
* Load config on startup + move default config from constructor to function
* Move Config out of XML Folder
* Implement saving and restoring field info
* Fix unnecessary object creation and XML Attribute names
* Save "SystemLanguage" option to config properly
* Load text dynamically + Choose proper language when "SystemLanguage" is selected
* Restore SystemLanguage setting properly + Make System Language the default
* Fix typo in English locale
* Change XmlRoot attributes to more descriptive ones
* Move Config saving when closing application to a separate method
* Move Config saving when closing Settings window to separate method
* Use path.combine properly
* Make LoadAndReturnConfig more concise
* Reset to SystemLanguage if trying to load a invalid language
* Enable Fill in fields by default
* Add documentation to Config.cs and FieldContents.cs
/// Determines if the modpacker should remember information entered into the fields between usages.
/// </summary>
[XmlAttribute("FillInContents")]
publicboolFillInContents
{get;set;}
/// <summary>
/// Used to save information from the fields. Only used when <see cref="FillInContents"/> is <see langword="true"/>
/// </summary>
[XmlElement("Fields")]
publicFieldContentsFields
{get;set;}
publicConfig()
{
}
publicConfig(stringlanguage,boolfillIn)
{
Language=language;
FillInContents=fillIn;
Fields=newFieldContents();
}
/// <summary>
/// Reads the configuration from disk and returns a <see cref="Config"/> object. If the configuration does not exist, a default configuration will be created.
/// </summary>
/// <returns> Returns a <see cref="Config"/> object containing either the configuration read from disk or the default one.</returns>