@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 | |||||
# Visual Studio 14 | # Visual Studio 14 | ||||
VisualStudioVersion = 14.0.25420.1 | VisualStudioVersion = 14.0.25420.1 | ||||
MinimumVisualStudioVersion = 10.0.40219.1 | MinimumVisualStudioVersion = 10.0.40219.1 | ||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThunderboltTimeSync", "ThunderboltTimeSync\ThunderboltTimeSync.csproj", "{7D970120-F57C-4541-BD54-2602C59EB8BA}" | |||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GPSDOTimeSync", "GPSDOTimeSync\GPSDOTimeSync.csproj", "{7D970120-F57C-4541-BD54-2602C59EB8BA}" | |||||
EndProject | EndProject | ||||
Global | Global | ||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
@@ -1,4 +1,4 @@ | |||||
namespace ThunderboltTimeSync { | |||||
namespace GPSDOTimeSync { | |||||
partial class FormMain { | partial class FormMain { | ||||
/// <summary> | /// <summary> | ||||
/// Required designer variable. | /// Required designer variable. | ||||
@@ -62,7 +62,7 @@ | |||||
this.Controls.Add(this.statusStrip); | this.Controls.Add(this.statusStrip); | ||||
this.Controls.Add(this.labelTimestamps); | this.Controls.Add(this.labelTimestamps); | ||||
this.Name = "FormMain"; | this.Name = "FormMain"; | ||||
this.Text = "Thunderbolt Time Sync"; | |||||
this.Text = "GPSDO Time Sync"; | |||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormMain_FormClosing); | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormMain_FormClosing); | ||||
this.statusStrip.ResumeLayout(false); | this.statusStrip.ResumeLayout(false); | ||||
this.statusStrip.PerformLayout(); | this.statusStrip.PerformLayout(); |
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Drawing; | using System.Drawing; | ||||
using System.IO.Ports; | using System.IO.Ports; | ||||
using System.Windows.Forms; | using System.Windows.Forms; | ||||
using ThunderboltTimeSync.Devices.Thunderbolt; | |||||
using ThunderboltTimeSync.TimeProviders; | |||||
using ThunderboltTimeSync.TimeProviders.Thunderbolt; | |||||
using GPSDOTimeSync.Devices.Thunderbolt; | |||||
using GPSDOTimeSync.TimeProviders; | |||||
using GPSDOTimeSync.TimeProviders.Thunderbolt; | |||||
namespace ThunderboltTimeSync { | |||||
namespace GPSDOTimeSync { | |||||
public partial class FormMain : Form { | public partial class FormMain : Form { | ||||
private static readonly Dictionary<LogLevel, Color> LOG_LEVEL_TO_COLOR = new Dictionary<LogLevel, Color>() { | private static readonly Dictionary<LogLevel, Color> LOG_LEVEL_TO_COLOR = new Dictionary<LogLevel, Color>() { | ||||
{ LogLevel.Info, Color.Black }, | { LogLevel.Info, Color.Black }, |
@@ -7,8 +7,8 @@ | |||||
<ProjectGuid>{7D970120-F57C-4541-BD54-2602C59EB8BA}</ProjectGuid> | <ProjectGuid>{7D970120-F57C-4541-BD54-2602C59EB8BA}</ProjectGuid> | ||||
<OutputType>WinExe</OutputType> | <OutputType>WinExe</OutputType> | ||||
<AppDesignerFolder>Properties</AppDesignerFolder> | <AppDesignerFolder>Properties</AppDesignerFolder> | ||||
<RootNamespace>ThunderboltTimeSync</RootNamespace> | |||||
<AssemblyName>ThunderboltTimeSync</AssemblyName> | |||||
<RootNamespace>GPSDOTimeSync</RootNamespace> | |||||
<AssemblyName>GPSDOTimeSync</AssemblyName> | |||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> | <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> | ||||
<FileAlignment>512</FileAlignment> | <FileAlignment>512</FileAlignment> | ||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||||
@@ -91,4 +91,4 @@ | |||||
<Target Name="AfterBuild"> | <Target Name="AfterBuild"> | ||||
</Target> | </Target> | ||||
--> | --> | ||||
</Project> | |||||
</Project> |
@@ -2,7 +2,7 @@ | |||||
using System.Security.Principal; | using System.Security.Principal; | ||||
using System.Windows.Forms; | using System.Windows.Forms; | ||||
namespace ThunderboltTimeSync { | |||||
namespace GPSDOTimeSync { | |||||
static class Program { | static class Program { | ||||
/// <summary> | /// <summary> | ||||
/// Checks if the application is currently running with administrator privileges. | /// Checks if the application is currently running with administrator privileges. |
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices; | |||||
// General Information about an assembly is controlled through the following | // General Information about an assembly is controlled through the following | ||||
// set of attributes. Change these attribute values to modify the information | // set of attributes. Change these attribute values to modify the information | ||||
// associated with an assembly. | // associated with an assembly. | ||||
[assembly: AssemblyTitle("ThunderboltTimeSync")] | |||||
[assembly: AssemblyTitle("GPSDOTimeSync")] | |||||
[assembly: AssemblyDescription("")] | [assembly: AssemblyDescription("")] | ||||
[assembly: AssemblyConfiguration("")] | [assembly: AssemblyConfiguration("")] | ||||
[assembly: AssemblyCompany("")] | [assembly: AssemblyCompany("")] | ||||
[assembly: AssemblyProduct("ThunderboltTimeSync")] | |||||
[assembly: AssemblyProduct("GPSDOTimeSync")] | |||||
[assembly: AssemblyCopyright("Copyright © 2017")] | [assembly: AssemblyCopyright("Copyright © 2017")] | ||||
[assembly: AssemblyTrademark("")] | [assembly: AssemblyTrademark("")] | ||||
[assembly: AssemblyCulture("")] | [assembly: AssemblyCulture("")] |
@@ -8,7 +8,7 @@ | |||||
// </auto-generated> | // </auto-generated> | ||||
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ | ||||
namespace ThunderboltTimeSync.Properties { | |||||
namespace GPSDOTimeSync.Properties { | |||||
/// <summary> | /// <summary> | ||||
@@ -38,7 +38,7 @@ namespace ThunderboltTimeSync.Properties { | |||||
internal static global::System.Resources.ResourceManager ResourceManager { | internal static global::System.Resources.ResourceManager ResourceManager { | ||||
get { | get { | ||||
if ((resourceMan == null)) { | if ((resourceMan == null)) { | ||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ThunderboltTimeSync.Properties.Resources", typeof(Resources).Assembly); | |||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GPSDOTimeSync.Properties.Resources", typeof(Resources).Assembly); | |||||
resourceMan = temp; | resourceMan = temp; | ||||
} | } | ||||
return resourceMan; | return resourceMan; |
@@ -8,7 +8,7 @@ | |||||
// </auto-generated> | // </auto-generated> | ||||
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ | ||||
namespace ThunderboltTimeSync.Properties { | |||||
namespace GPSDOTimeSync.Properties { | |||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
@@ -1,7 +1,7 @@ | |||||
using System; | using System; | ||||
using System.Runtime.InteropServices; | using System.Runtime.InteropServices; | ||||
namespace ThunderboltTimeSync { | |||||
namespace GPSDOTimeSync { | |||||
class SystemTimeUtils { | class SystemTimeUtils { | ||||
public class SystemTimeException : Exception { | public class SystemTimeException : Exception { | ||||
public SystemTimeException(int hresult) : base(string.Format("The system time could not be set (HRESULT 0x{0:X8}).", hresult)) { | public SystemTimeException(int hresult) : base(string.Format("The system time could not be set (HRESULT 0x{0:X8}).", hresult)) { |
@@ -1,6 +1,6 @@ | |||||
using System; | using System; | ||||
namespace ThunderboltTimeSync.TimeProviders { | |||||
namespace GPSDOTimeSync.TimeProviders { | |||||
/// <summary> | /// <summary> | ||||
/// Called when the time provider has a new time and date available. | /// Called when the time provider has a new time and date available. | ||||
/// </summary> | /// </summary> |
@@ -4,7 +4,7 @@ using System.IO.Ports; | |||||
using System.Linq; | using System.Linq; | ||||
using System.Threading; | using System.Threading; | ||||
namespace ThunderboltTimeSync.Devices.Thunderbolt { | |||||
namespace GPSDOTimeSync.Devices.Thunderbolt { | |||||
public class ThunderboltPacket { | public class ThunderboltPacket { | ||||
/// <summary> | /// <summary> | ||||
/// The validity of the packet. | /// The validity of the packet. |
@@ -1,7 +1,7 @@ | |||||
using System; | using System; | ||||
using ThunderboltTimeSync.Devices.Thunderbolt; | |||||
using GPSDOTimeSync.Devices.Thunderbolt; | |||||
namespace ThunderboltTimeSync.TimeProviders.Thunderbolt { | |||||
namespace GPSDOTimeSync.TimeProviders.Thunderbolt { | |||||
class ThunderboltTimeProvider : ITimeProvider { | class ThunderboltTimeProvider : ITimeProvider { | ||||
private ThunderboltSerialPort thunderboltSerialPort; | private ThunderboltSerialPort thunderboltSerialPort; | ||||
@@ -1,2 +1,2 @@ | |||||
# ThunderboltTimeSync | |||||
Synchronizes a Windows PC's clock using a Trimble Thunderbolt. | |||||
# GPSDOTimeSync | |||||
Synchronizes a Windows PC's clock using a GPSDO, such as a Trimble Thunderbolt. |