commit a2348438ec973b9c6027f666fedb4e5f1139cddf Author: wenyongda Date: Thu Jun 5 11:21:21 2025 +0800 初始化 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7df25fb --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +**/.vs/ +**/.vshistory/ +**/bin/ +**/obj/ diff --git a/PhoneAppBinder.sln b/PhoneAppBinder.sln new file mode 100644 index 0000000..b2ed0e1 --- /dev/null +++ b/PhoneAppBinder.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.36202.13 d17.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PhoneAppBinder", "PhoneAppBinder\PhoneAppBinder.csproj", "{5E1000D0-1889-4D24-AEF1-0565D8AC91FD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5E1000D0-1889-4D24-AEF1-0565D8AC91FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5E1000D0-1889-4D24-AEF1-0565D8AC91FD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5E1000D0-1889-4D24-AEF1-0565D8AC91FD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5E1000D0-1889-4D24-AEF1-0565D8AC91FD}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B2EA014D-FA83-48F8-8101-9B885741BD85} + EndGlobalSection +EndGlobal diff --git a/PhoneAppBinder/Form1.Designer.cs b/PhoneAppBinder/Form1.Designer.cs new file mode 100644 index 0000000..9c0deb5 --- /dev/null +++ b/PhoneAppBinder/Form1.Designer.cs @@ -0,0 +1,80 @@ +namespace PhoneAppBinder +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + button1 = new AntdUI.Button(); + input1 = new AntdUI.Input(); + menu1 = new AntdUI.Menu(); + SuspendLayout(); + // + // button1 + // + button1.Location = new Point(251, 90); + button1.Name = "button1"; + button1.Size = new Size(75, 23); + button1.TabIndex = 0; + button1.Text = "button1"; + button1.Type = AntdUI.TTypeMini.Success; + // + // input1 + // + input1.Location = new Point(336, 146); + input1.Name = "input1"; + input1.Size = new Size(150, 35); + input1.TabIndex = 1; + input1.Text = "input1"; + // + // menu1 + // + menu1.Location = new Point(12, 12); + menu1.Name = "menu1"; + menu1.Size = new Size(75, 23); + menu1.TabIndex = 2; + menu1.Text = "menu1"; + // + // Form1 + // + AutoScaleDimensions = new SizeF(7F, 17F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 450); + Controls.Add(menu1); + Controls.Add(input1); + Controls.Add(button1); + Name = "Form1"; + Text = "Form1"; + ResumeLayout(false); + } + + #endregion + + private AntdUI.Button button1; + private AntdUI.Input input1; + private AntdUI.Menu menu1; + } +} diff --git a/PhoneAppBinder/Form1.cs b/PhoneAppBinder/Form1.cs new file mode 100644 index 0000000..cb1573b --- /dev/null +++ b/PhoneAppBinder/Form1.cs @@ -0,0 +1,10 @@ +namespace PhoneAppBinder +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/PhoneAppBinder/Form1.resx b/PhoneAppBinder/Form1.resx new file mode 100644 index 0000000..8b2ff64 --- /dev/null +++ b/PhoneAppBinder/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PhoneAppBinder/PhoneAppBinder.csproj b/PhoneAppBinder/PhoneAppBinder.csproj new file mode 100644 index 0000000..2bdef8b --- /dev/null +++ b/PhoneAppBinder/PhoneAppBinder.csproj @@ -0,0 +1,31 @@ + + + + WinExe + net9.0-windows + enable + true + enable + + + + + + + + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + \ No newline at end of file diff --git a/PhoneAppBinder/Program.cs b/PhoneAppBinder/Program.cs new file mode 100644 index 0000000..ddfa93e --- /dev/null +++ b/PhoneAppBinder/Program.cs @@ -0,0 +1,17 @@ +namespace PhoneAppBinder +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file diff --git a/PhoneAppBinder/Properties/Resources.Designer.cs b/PhoneAppBinder/Properties/Resources.Designer.cs new file mode 100644 index 0000000..732e223 --- /dev/null +++ b/PhoneAppBinder/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace PhoneAppBinder.Properties { + using System; + + + /// + /// 一个强类型的资源类,用于查找本地化的字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.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 (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PhoneAppBinder.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/PhoneAppBinder/Properties/Resources.resx b/PhoneAppBinder/Properties/Resources.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PhoneAppBinder/Properties/Resources.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file