diff --git a/dot.sln.DotSettings b/dot.sln.DotSettings index 5f67123..205c3ab 100644 --- a/dot.sln.DotSettings +++ b/dot.sln.DotSettings @@ -1,7 +1,6 @@ + xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xml:space="preserve"> <?xml version="1.0" encoding="utf-16"?> <Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> <TypePattern> @@ -11,6 +10,7 @@ <Kind.Order> <DeclarationKind>Interface</DeclarationKind> <DeclarationKind>Class</DeclarationKind> + <DeclarationKind>Record</DeclarationKind> <DeclarationKind>Enum</DeclarationKind> <DeclarationKind>Struct</DeclarationKind> <DeclarationKind>Delegate</DeclarationKind> diff --git a/src/Lang/Str.Designer.cs b/src/Lang/Str.Designer.cs index 95267cc..670e37e 100644 --- a/src/Lang/Str.Designer.cs +++ b/src/Lang/Str.Designer.cs @@ -275,6 +275,15 @@ namespace Dot.Lang { } } + /// + /// Looks up a localized string similar to NTP 标准网络时钟: {0}. + /// + public static string ServerTime { + get { + return ResourceManager.GetString("ServerTime", resourceCulture); + } + } + /// /// Looks up a localized string similar to 已读取:{0}/{1},处理:{2},跳过:{3}. /// diff --git a/src/Lang/Str.en-US.resx b/src/Lang/Str.en-US.resx deleted file mode 100644 index 2e54aea..0000000 --- a/src/Lang/Str.en-US.resx +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, - PublicKeyToken=b77a5c561934e089 - - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, - PublicKeyToken=b77a5c561934e089 - - - - The input text is empty - - - Find files... - - - The specified path "{0}" does not exist - - - Find files...OK - - - Read: {0}/{1}, processed: {2}, skipped: {3} - - - Text encoding tool - - - {0}(copied to clipboard) - - - File wildcards - - - Directory path to be processed - - - Convert newline characters to LF - - - GUID tool - - - Use uppercase output - - - Random password generator - - - Password length - - - BitSet 1:[0-9],2:[a-z],4:[A-Z],8:[ascii.0x21-0x2F] - - - Remove line breaks and spaces at the end of the file - - - Remove the uf8 bom of the file - - - Text to be processed (clipboard value is taken by default) - - - Press any key to continue... - - - Read-only mode (only for testing, no actual modification) - - - No documents to be processed - - - Timeout for connecting to the NTP server (milliseconds) - - - Synchronize local time - - - Success {0}/{1}, the average value of the clock offset of the machine:{2}ms - - - {0}/{1} NTP servers - - - {0} In communication... - - - {0}, local clock offset: {1} ms - - - Local time has been synchronized - - - Server - - - Status - - - Local clock offset - - \ No newline at end of file diff --git a/src/Lang/Str.resx b/src/Lang/Str.resx index fb99a7a..6e758c9 100644 --- a/src/Lang/Str.resx +++ b/src/Lang/Str.resx @@ -122,4 +122,7 @@ Local clock offset + + NTP 标准网络时钟: {0} + \ No newline at end of file diff --git a/src/Time/Main.cs b/src/Time/Main.cs index f2c5dec..85a72af 100644 --- a/src/Time/Main.cs +++ b/src/Time/Main.cs @@ -1,3 +1,4 @@ +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Net.Sockets; using System.Runtime.InteropServices; @@ -6,6 +7,13 @@ namespace Dot.Time; public sealed class Main : Tool