diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore index c7db314..5c893e7 100644 --- a/.gitignore +++ b/.gitignore @@ -108,3 +108,5 @@ _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML +/.vs/HaoYue.BF3ChineseInput/v15/Server/sqlite3/db.lock +/.vs/slnx.sqlite diff --git a/.vs/HaoYue.BF3ChineseInput/v15/Server/sqlite3/storage.ide b/.vs/HaoYue.BF3ChineseInput/v15/Server/sqlite3/storage.ide new file mode 100644 index 0000000..56758a8 Binary files /dev/null and b/.vs/HaoYue.BF3ChineseInput/v15/Server/sqlite3/storage.ide differ diff --git a/.vs/HaoYue.BF3ChineseInput/v15/Server/sqlite3/storage.ide-shm b/.vs/HaoYue.BF3ChineseInput/v15/Server/sqlite3/storage.ide-shm new file mode 100644 index 0000000..b6c1ef2 Binary files /dev/null and b/.vs/HaoYue.BF3ChineseInput/v15/Server/sqlite3/storage.ide-shm differ diff --git a/.vs/HaoYue.BF3ChineseInput/v15/Server/sqlite3/storage.ide-wal b/.vs/HaoYue.BF3ChineseInput/v15/Server/sqlite3/storage.ide-wal new file mode 100644 index 0000000..a6a5582 Binary files /dev/null and b/.vs/HaoYue.BF3ChineseInput/v15/Server/sqlite3/storage.ide-wal differ diff --git a/.vs/ProjectSettings.json b/.vs/ProjectSettings.json new file mode 100644 index 0000000..f8b4888 --- /dev/null +++ b/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": null +} \ No newline at end of file diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..6b61141 --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,6 @@ +{ + "ExpandedNodes": [ + "" + ], + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/HaoYue.BF3ChineseInput.sln b/HaoYue.BF3ChineseInput.sln new file mode 100644 index 0000000..477c991 --- /dev/null +++ b/HaoYue.BF3ChineseInput.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27703.2026 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HaoYue.BF3ChineseInput", "HaoYue.BF3ChineseInput\HaoYue.BF3ChineseInput.csproj", "{169CFAE3-0596-472E-B2B5-FE285F8582FA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {169CFAE3-0596-472E-B2B5-FE285F8582FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {169CFAE3-0596-472E-B2B5-FE285F8582FA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {169CFAE3-0596-472E-B2B5-FE285F8582FA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {169CFAE3-0596-472E-B2B5-FE285F8582FA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9B61E777-7209-4998-9649-2239EA54F621} + EndGlobalSection +EndGlobal diff --git a/HaoYue.BF3ChineseInput/App.xaml b/HaoYue.BF3ChineseInput/App.xaml new file mode 100644 index 0000000..46374e7 --- /dev/null +++ b/HaoYue.BF3ChineseInput/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/HaoYue.BF3ChineseInput/App.xaml.cs b/HaoYue.BF3ChineseInput/App.xaml.cs new file mode 100644 index 0000000..8d2740d --- /dev/null +++ b/HaoYue.BF3ChineseInput/App.xaml.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Windows; + +namespace HaoYue.BF3ChineseInput +{ + /// + /// App.xaml 的交互逻辑 + /// + public partial class App : Application + { + } +} diff --git a/HaoYue.BF3ChineseInput/HaoYue.BF3ChineseInput.csproj b/HaoYue.BF3ChineseInput/HaoYue.BF3ChineseInput.csproj new file mode 100644 index 0000000..9c9de68 --- /dev/null +++ b/HaoYue.BF3ChineseInput/HaoYue.BF3ChineseInput.csproj @@ -0,0 +1,94 @@ + + + + + Debug + AnyCPU + {169CFAE3-0596-472E-B2B5-FE285F8582FA} + WinExe + HaoYue.BF3ChineseInput + HaoYue.BF3ChineseInput + v4.0 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + \ No newline at end of file diff --git a/HaoYue.BF3ChineseInput/KeyboardHook.cs b/HaoYue.BF3ChineseInput/KeyboardHook.cs new file mode 100644 index 0000000..413cb22 --- /dev/null +++ b/HaoYue.BF3ChineseInput/KeyboardHook.cs @@ -0,0 +1,166 @@ +using System; +using System.Runtime.InteropServices; +using System.Windows.Forms; +//using System.Windows.Input; + +namespace HaoYue.BF3ChineseInput +{ + /// + /// 键盘钩子 + /// [以下代码来自某网友,并非本人原创] + /// + class KeyboardHook + { + public event System.Windows.Forms.KeyEventHandler KeyDownEvent; + public event KeyPressEventHandler KeyPressEvent; + public event System.Windows.Forms.KeyEventHandler KeyUpEvent; + + public delegate int HookProc(int nCode, Int32 wParam, IntPtr lParam); + static int hKeyboardHook = 0; //声明键盘钩子处理的初始值 + //值在Microsoft SDK的Winuser.h里查询 + // http://www.bianceng.cn/Programming/csharp/201410/45484.htm + public const int WH_KEYBOARD_LL = 13; //线程键盘钩子监听鼠标消息设为2,全局键盘监听鼠标消息设为13 + HookProc KeyboardHookProcedure; //声明KeyboardHookProcedure作为HookProc类型 + //键盘结构 + [StructLayout(LayoutKind.Sequential)] + public class KeyboardHookStruct + { + public int vkCode; //定一个虚拟键码。该代码必须有一个价值的范围1至254 + public int scanCode; // 指定的硬件扫描码的关键 + public int flags; // 键标志 + public int time; // 指定的时间戳记的这个讯息 + public int dwExtraInfo; // 指定额外信息相关的信息 + } + //使用此功能,安装了一个钩子 + [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] + public static extern int SetWindowsHookEx(int idHook, HookProc lpfn, IntPtr hInstance, int threadId); + + + //调用此函数卸载钩子 + [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] + public static extern bool UnhookWindowsHookEx(int idHook); + + + //使用此功能,通过信息钩子继续下一个钩子 + [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] + public static extern int CallNextHookEx(int idHook, int nCode, Int32 wParam, IntPtr lParam); + + // 取得当前线程编号(线程钩子需要用到) + [DllImport("kernel32.dll")] + static extern int GetCurrentThreadId(); + + //使用WINDOWS API函数代替获取当前实例的函数,防止钩子失效 + [DllImport("kernel32.dll")] + public static extern IntPtr GetModuleHandle(string name); + + public void Start() + { + // 安装键盘钩子 + if (hKeyboardHook == 0) + { + KeyboardHookProcedure = new HookProc(KeyboardHookProc); + hKeyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, KeyboardHookProcedure, GetModuleHandle(System.Diagnostics.Process.GetCurrentProcess().MainModule.ModuleName), 0); + //hKeyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, KeyboardHookProcedure, Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]), 0); + //************************************ + //键盘线程钩子 + //SetWindowsHookEx( 2,KeyboardHookProcedure, IntPtr.Zero, GetCurrentThreadId());//指定要监听的线程idGetCurrentThreadId(), + //键盘全局钩子,需要引用空间(using System.Reflection;) + //SetWindowsHookEx( 13,MouseHookProcedure,Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]),0); + // + //关于SetWindowsHookEx (int idHook, HookProc lpfn, IntPtr hInstance, int threadId)函数将钩子加入到钩子链表中,说明一下四个参数: + //idHook 钩子类型,即确定钩子监听何种消息,上面的代码中设为2,即监听键盘消息并且是线程钩子,如果是全局钩子监听键盘消息应设为13, + //线程钩子监听鼠标消息设为7,全局钩子监听鼠标消息设为14。lpfn 钩子子程的地址指针。如果dwThreadId参数为0 或是一个由别的进程创建的 + //线程的标识,lpfn必须指向DLL中的钩子子程。 除此以外,lpfn可以指向当前进程的一段钩子子程代码。钩子函数的入口地址,当钩子钩到任何 + //消息后便调用这个函数。hInstance应用程序实例的句柄。标识包含lpfn所指的子程的DLL。如果threadId 标识当前进程创建的一个线程,而且子 + //程代码位于当前进程,hInstance必须为NULL。可以很简单的设定其为本应用程序的实例句柄。threaded 与安装的钩子子程相关联的线程的标识符 + //如果为0,钩子子程与所有的线程关联,即为全局钩子 + //************************************ + //如果SetWindowsHookEx失败 + if (hKeyboardHook == 0) + { + Stop(); + throw new Exception("安装键盘钩子失败"); + } + } + } + public void Stop() + { + bool retKeyboard = true; + + + if (hKeyboardHook != 0) + { + retKeyboard = UnhookWindowsHookEx(hKeyboardHook); + hKeyboardHook = 0; + } + + if (!(retKeyboard)) throw new Exception("卸载钩子失败!"); + } + //ToAscii职能的转换指定的虚拟键码和键盘状态的相应字符或字符 + [DllImport("user32")] + public static extern int ToAscii(int uVirtKey, //[in] 指定虚拟关键代码进行翻译。 + int uScanCode, // [in] 指定的硬件扫描码的关键须翻译成英文。高阶位的这个值设定的关键,如果是(不压) + byte[] lpbKeyState, // [in] 指针,以256字节数组,包含当前键盘的状态。每个元素(字节)的数组包含状态的一个关键。如果高阶位的字节是一套,关键是下跌(按下)。在低比特,如果设置表明,关键是对切换。在此功能,只有肘位的CAPS LOCK键是相关的。在切换状态的NUM个锁和滚动锁定键被忽略。 + byte[] lpwTransKey, // [out] 指针的缓冲区收到翻译字符或字符。 + int fuState); // [in] Specifies whether a menu is active. This parameter must be 1 if a menu is active, or 0 otherwise. + + //获取按键的状态 + [DllImport("user32")] + public static extern int GetKeyboardState(byte[] pbKeyState); + + + [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] + private static extern short GetKeyState(int vKey); + + private const int WM_KEYDOWN = 0x100;//KEYDOWN + private const int WM_KEYUP = 0x101;//KEYUP + private const int WM_SYSKEYDOWN = 0x104;//SYSKEYDOWN + private const int WM_SYSKEYUP = 0x105;//SYSKEYUP + + private int KeyboardHookProc(int nCode, Int32 wParam, IntPtr lParam) + { + // 侦听键盘事件 + if ((nCode >= 0) && (KeyDownEvent != null || KeyUpEvent != null || KeyPressEvent != null)) + { + KeyboardHookStruct MyKeyboardHookStruct = (KeyboardHookStruct)Marshal.PtrToStructure(lParam, typeof(KeyboardHookStruct)); + // raise KeyDown + if (KeyDownEvent != null && (wParam == WM_KEYDOWN || wParam == WM_SYSKEYDOWN)) + { + Keys keyData = (Keys)MyKeyboardHookStruct.vkCode; + System.Windows.Forms.KeyEventArgs e = new System.Windows.Forms.KeyEventArgs(keyData); + KeyDownEvent(this, e); + } + + //键盘按下 + if (KeyPressEvent != null && wParam == WM_KEYDOWN) + { + byte[] keyState = new byte[256]; + GetKeyboardState(keyState); + + byte[] inBuffer = new byte[2]; + if (ToAscii(MyKeyboardHookStruct.vkCode, MyKeyboardHookStruct.scanCode, keyState, inBuffer, MyKeyboardHookStruct.flags) == 1) + { + KeyPressEventArgs e = new KeyPressEventArgs((char)inBuffer[0]); + KeyPressEvent(this, e); + } + } + + // 键盘抬起 + if (KeyUpEvent != null && (wParam == WM_KEYUP || wParam == WM_SYSKEYUP)) + { + Keys keyData = (Keys)MyKeyboardHookStruct.vkCode; + System.Windows.Forms.KeyEventArgs e = new System.Windows.Forms.KeyEventArgs(keyData); + KeyUpEvent(this, e); + } + + } + //如果返回1,则结束消息,这个消息到此为止,不再传递。 + //如果返回0或调用CallNextHookEx函数则消息出了这个钩子继续往下传递,也就是传给消息真正的接受者 + return CallNextHookEx(hKeyboardHook, nCode, wParam, lParam); + } + ~KeyboardHook() + { + Stop(); + } + } +} \ No newline at end of file diff --git a/HaoYue.BF3ChineseInput/MainWindow.xaml b/HaoYue.BF3ChineseInput/MainWindow.xaml new file mode 100644 index 0000000..46bb87f --- /dev/null +++ b/HaoYue.BF3ChineseInput/MainWindow.xaml @@ -0,0 +1,13 @@ + + + + + + diff --git a/HaoYue.BF3ChineseInput/MainWindow.xaml.cs b/HaoYue.BF3ChineseInput/MainWindow.xaml.cs new file mode 100644 index 0000000..9b059ba --- /dev/null +++ b/HaoYue.BF3ChineseInput/MainWindow.xaml.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Forms; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace HaoYue.BF3ChineseInput +{ + /// + /// MainWindow.xaml 的交互逻辑 + /// + public partial class MainWindow : Window + { + + KeyboardHook k_hook; + public MainWindow() + { + InitializeComponent(); + k_hook = new KeyboardHook(); + //k_hook.KeyDownEvent += new System.Windows.Forms.KeyEventHandler(hook_KeyDown);//钩住键按下 + k_hook.KeyPressEvent += K_hook_KeyPressEvent; + k_hook.Start();//安装键盘钩子 + } + + private void K_hook_KeyPressEvent(object sender, KeyPressEventArgs e) + { + //tb1.Text += e.KeyChar; + char i = e.KeyChar; + //System.Windows.Forms.MessageBox.Show(i.ToString()); + + + text1.Text += i; + + //判断按下的键(Alt + A) + if (i == 'j' && (int)System.Windows.Forms.Control.ModifierKeys == (int)Keys.Alt) + { + System.Windows.Forms.MessageBox.Show("ddd"); + } + } + + + [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "GetForegroundWindow", CharSet = System.Runtime.InteropServices.CharSet.Auto, ExactSpelling = true)] + public static extern IntPtr GetF(); //获得本窗体的句柄 + [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "SetForegroundWindow")] + public static extern bool SetF(IntPtr hWnd); //设置此窗体为活动窗体 + private void timer1_Tick(object sender, EventArgs e) + { + if (this.Handle != GetF()) //如果本窗口没有获得焦点 + SetF(this.Handle); //设置本窗口获得焦点 + } + + private void hook_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) + { + text1.Text += (char)e.KeyData; + + + //判断按下的键(Alt + A) + //if (e.KeyValue == (int)Keys.A && (int)System.Windows.Forms.Control.ModifierKeys == (int)Keys.Alt) + //{ + // System.Windows.Forms.MessageBox.Show("ddd"); + //} + } + + private void Window_Unloaded(object sender, RoutedEventArgs e) + { + k_hook.Stop(); + } + + } +} diff --git a/HaoYue.BF3ChineseInput/Properties/AssemblyInfo.cs b/HaoYue.BF3ChineseInput/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..405253f --- /dev/null +++ b/HaoYue.BF3ChineseInput/Properties/AssemblyInfo.cs @@ -0,0 +1,55 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("HaoYue.BF3ChineseInput")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("HaoYue.BF3ChineseInput")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +//若要开始生成可本地化的应用程序,请设置 +//.csproj 文件中的 CultureYouAreCodingWith +//例如,如果您在源文件中使用的是美国英语, +//使用的是美国英语,请将 设置为 en-US。 然后取消 +//对以下 NeutralResourceLanguage 特性的注释。 更新 +//以下行中的“en-US”以匹配项目文件中的 UICulture 设置。 + +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //主题特定资源词典所处位置 + //(未在页面中找到资源时使用, + //或应用程序资源字典中找到时使用) + ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置 + //(未在页面中找到资源时使用, + //、应用程序或任何主题专用资源字典中找到时使用) +)] + + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 +// 方法是按如下所示使用“*”: : +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/HaoYue.BF3ChineseInput/Properties/Resources.Designer.cs b/HaoYue.BF3ChineseInput/Properties/Resources.Designer.cs new file mode 100644 index 0000000..082b9fd --- /dev/null +++ b/HaoYue.BF3ChineseInput/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本: 4.0.30319.42000 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace HaoYue.BF3ChineseInput.Properties +{ + + + /// + /// 强类型资源类,用于查找本地化字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// 返回此类使用的缓存 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HaoYue.BF3ChineseInput.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 覆盖当前线程的 CurrentUICulture 属性 + /// 使用此强类型的资源类的资源查找。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/HaoYue.BF3ChineseInput/Properties/Resources.resx b/HaoYue.BF3ChineseInput/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/HaoYue.BF3ChineseInput/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + 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 + + \ No newline at end of file diff --git a/HaoYue.BF3ChineseInput/Properties/Settings.Designer.cs b/HaoYue.BF3ChineseInput/Properties/Settings.Designer.cs new file mode 100644 index 0000000..eed58ba --- /dev/null +++ b/HaoYue.BF3ChineseInput/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace HaoYue.BF3ChineseInput.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/HaoYue.BF3ChineseInput/Properties/Settings.settings b/HaoYue.BF3ChineseInput/Properties/Settings.settings new file mode 100644 index 0000000..033d7a5 --- /dev/null +++ b/HaoYue.BF3ChineseInput/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file