Skip to content

Commit

Permalink
Merge pull request #47 from xibosignage/develop
Browse files Browse the repository at this point in the history
Release 1.8.1
  • Loading branch information
dasgarner authored Apr 10, 2017
2 parents daf318f + 956a6d7 commit 2331553
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
25 changes: 21 additions & 4 deletions Logic/ApplicationSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public class ApplicationSettings
private List<string> _globalProperties;

// Application Specific Settings we want to protect
private string _clientVersion = "1.8.0";
private string _clientVersion = "1.8.1";
private string _version = "5";
private int _clientCodeVersion = 127;
private int _clientCodeVersion = 128;

public string ClientVersion { get { return _clientVersion; } }
public string Version { get { return _version; } }
Expand Down Expand Up @@ -187,7 +187,24 @@ public void Save()
{
if (property.CanRead && !_globalProperties.Contains(property.Name) && property.Name != "HardwareKey")
{
writer.WriteElementString(property.Name, "" + property.GetValue(_instance));
if (property.Name == "Commands")
{
writer.WriteStartElement("commands");

foreach (Command command in _instance.Commands)
{
writer.WriteStartElement(command.Code);
writer.WriteElementString("commandString", command.CommandString);
writer.WriteElementString("commandValidation", command.Validation);
writer.WriteEndElement();
}

writer.WriteEndElement();
}
else
{
writer.WriteElementString(property.Name, "" + property.GetValue(_instance));
}
}
}
catch
Expand Down Expand Up @@ -229,7 +246,7 @@ public void PopulateFromXml(XmlDocument document)
foreach (XmlNode node in document.DocumentElement.ChildNodes)
{
// Are we a commands node?
if (node.Name == "commands")
if (node.Name.ToLower() == "commands")
{
List<Command> commands = new List<Command>();

Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("10.8.0.4")]
[assembly: AssemblyFileVersion("10.8.0.4")]
[assembly: AssemblyVersion("10.8.1.0")]
[assembly: AssemblyFileVersion("10.8.1.0")]
[assembly: NeutralResourcesLanguageAttribute("en-GB")]

0 comments on commit 2331553

Please sign in to comment.