From 92e898650019f7f1183ccdcbd4e745a651ab1897 Mon Sep 17 00:00:00 2001 From: nsnail Date: Wed, 21 Dec 2022 10:47:26 +0800 Subject: [PATCH] refactor --- src/Color/Main.cs | 2 + src/Native/KeyboardHook.cs | 1 + src/Native/MouseHook.cs | 1 + src/Native/VkCode.cs | 4 +- src/Native/Win32.cs | 72 +++++++++++----------- src/Tran/Dto/BaiduTranslateResultDto.cs | 3 + src/Tran/Main.cs | 2 + src/Tran/Option.cs | 1 + src/Tran/WinMain.cs | 80 +++++++++++++------------ 9 files changed, 90 insertions(+), 76 deletions(-) diff --git a/src/Color/Main.cs b/src/Color/Main.cs index 3f5edfa..afe4575 100644 --- a/src/Color/Main.cs +++ b/src/Color/Main.cs @@ -7,6 +7,8 @@ namespace Dot.Color; [Description(nameof(Str.ScreenPixelTool))] [Localization(typeof(Str))] [SupportedOSPlatform(nameof(OSPlatform.Windows))] + +// ReSharper disable once ClassNeverInstantiated.Global internal sealed class Main : ToolBase