Skip to content

Commit

Permalink
Merge pull request #39 from dasgarner/develop
Browse files Browse the repository at this point in the history
1.8.0-rc2
  • Loading branch information
dasgarner authored Dec 22, 2016
2 parents 251f90c + 719456e commit c6e29d8
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
11 changes: 9 additions & 2 deletions Log/ClientInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,15 @@ public void UpdateStatusMarkerFile()
/// </summary>
private void updateStatusFile()
{
File.WriteAllText(Path.Combine(ApplicationSettings.Default.LibraryPath, "status.json"),
"{\"lastActivity\":\"" + DateTime.Now.ToString() + "\",\"state\":\"" + Thread.State.ToString() + "\",\"xmdsLastActivity\":\"" + ApplicationSettings.Default.XmdsLastConnection.ToString() + "\",\"xmdsCollectInterval\":\"" + ApplicationSettings.Default.CollectInterval.ToString() + "\"}");
try
{
File.WriteAllText(Path.Combine(ApplicationSettings.Default.LibraryPath, "status.json"),
"{\"lastActivity\":\"" + DateTime.Now.ToString() + "\",\"state\":\"" + Thread.State.ToString() + "\",\"xmdsLastActivity\":\"" + ApplicationSettings.Default.XmdsLastConnection.ToString() + "\",\"xmdsCollectInterval\":\"" + ApplicationSettings.Default.CollectInterval.ToString() + "\"}");
}
catch (Exception e)
{
Trace.WriteLine(new LogMessage("ClientInfo - updateStatusFile", "Failed to update status file. e = " + e.Message), LogType.Error.ToString());
}
}
}
}
4 changes: 2 additions & 2 deletions Logic/ApplicationSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public class ApplicationSettings
private static string _default = "default";

// Application Specific Settings we want to protect
private string _clientVersion = "1.8.0-rc1";
private string _clientVersion = "1.8.0-rc2";
private string _version = "5";
private int _clientCodeVersion = 124;
private int _clientCodeVersion = 125;

public string ClientVersion { get { return _clientVersion; } }
public string Version { get { return _version; } }
Expand Down
6 changes: 3 additions & 3 deletions MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ private void ChangeToNextLayout(string layoutPath)
Controls.Remove(control);
}

Trace.WriteLine(new LogMessage("MainForm - ChangeToNextLayout", "Destroy Layout Failed. Exception raised was: " + e.Message), LogType.Error.ToString());
Trace.WriteLine(new LogMessage("MainForm - ChangeToNextLayout", "Destroy Layout Failed. Exception raised was: " + e.Message), LogType.Info.ToString());
throw e;
}

Expand All @@ -527,7 +527,7 @@ private void ChangeToNextLayout(string layoutPath)
catch (Exception e)
{
DestroyLayout();
Trace.WriteLine(new LogMessage("MainForm - ChangeToNextLayout", "Prepare Layout Failed. Exception raised was: " + e.Message), LogType.Error.ToString());
Trace.WriteLine(new LogMessage("MainForm - ChangeToNextLayout", "Prepare Layout Failed. Exception raised was: " + e.Message), LogType.Info.ToString());
throw;
}

Expand All @@ -547,7 +547,7 @@ private void ChangeToNextLayout(string layoutPath)
}
catch (Exception e)
{
Trace.WriteLine(new LogMessage("MainForm - ChangeToNextLayout", "Notify Status Failed. Exception raised was: " + e.Message), LogType.Error.ToString());
Trace.WriteLine(new LogMessage("MainForm - ChangeToNextLayout", "Notify Status Failed. Exception raised was: " + e.Message), LogType.Info.ToString());
throw;
}
}
Expand Down
6 changes: 3 additions & 3 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static int Main(string[] args)
Trace.Flush();

return 0;
}
}

private static void RunClient()
{
Expand Down Expand Up @@ -201,8 +201,8 @@ static void HandleUnhandledException(Object o)
Trace.WriteLine(new LogMessage("Main", "Unable to write to event log " + ex.Message), LogType.Error.ToString());
}

// Try to restart
Application.Restart();
// Exit the application and allow it to be restarted by the Watchdog.
Application.Exit();
}

[DllImport("User32.dll")]
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.1")]
[assembly: AssemblyFileVersion("10.8.0.1")]
[assembly: AssemblyVersion("10.8.0.3")]
[assembly: AssemblyFileVersion("10.8.0.3")]
[assembly: NeutralResourcesLanguageAttribute("en-GB")]
Binary file modified bin/x86/Release/Xibo.scr
Binary file not shown.

0 comments on commit c6e29d8

Please sign in to comment.