From 01c3d0d35a8be55ffca7ce4fca67135d9ae0f109 Mon Sep 17 00:00:00 2001
From: SmallFox <2806143047@qq.com>
Date: Sat, 4 Apr 2026 22:04:07 +0800
Subject: 项目启航
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
请创建新项目和规划蓝图
---
.gitignore | 163 ++++++++++++++++++++------------------
NotePad/NotePad.sln | 25 ++++++
NotePad/NotePad/Form1.Designer.cs | 47 +++++++++++
NotePad/NotePad/Form1.cs | 21 +++++
NotePad/NotePad/Form1.resx | 60 ++++++++++++++
NotePad/NotePad/NotePad.csproj | 9 +++
NotePad/NotePad/Program.cs | 23 ++++++
README.md | 14 +++-
8 files changed, 282 insertions(+), 80 deletions(-)
create mode 100644 NotePad/NotePad.sln
create mode 100644 NotePad/NotePad/Form1.Designer.cs
create mode 100644 NotePad/NotePad/Form1.cs
create mode 100644 NotePad/NotePad/Form1.resx
create mode 100644 NotePad/NotePad/NotePad.csproj
create mode 100644 NotePad/NotePad/Program.cs
diff --git a/.gitignore b/.gitignore
index 19a17fd..ef9f5f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,82 +1,87 @@
-# This .gitignore file should be placed at the root of your Unity project directory
-#
-# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
-#
-/[Ll]ibrary/
-/[Tt]emp/
-/[Oo]bj/
-/[Bb]uild/
-/[Bb]uilds/
-/[Ll]ogs/
-/[Uu]ser[Ss]ettings/
-
-# MemoryCaptures can get excessive in size.
-# They also could contain extremely sensitive data
-/[Mm]emoryCaptures/
-
-# Recordings can get excessive in size
-/[Rr]ecordings/
-
-# Uncomment this line if you wish to ignore the asset store tools plugin
-# /[Aa]ssets/AssetStoreTools*
-
-# Autogenerated Jetbrains Rider plugin
-/[Aa]ssets/Plugins/Editor/JetBrains*
-
-# Visual Studio cache directory
+# ==============================================
+# C# Windows 窗体应用专用 .gitignore
+# 适配:.NET Framework / .NET Core / .NET 5+ WinForms
+# ==============================================
+
+# --------------------------
+# 1. 编译输出目录 (核心忽略)
+# --------------------------
+[Bb]in/
+[Oo]bj/
+[Rr]elease/
+[Dd]ebug/
+x64/
+x86/
+publish/
+out/
+
+# --------------------------
+# 2. NuGet 包与依赖
+# --------------------------
+**/packages/
+**/node_modules/
+*.nupkg
+*.snupkg
+.project
+.nuget/
+!**/packages.config
+
+# --------------------------
+# 3. Visual Studio 临时文件
+# --------------------------
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+*.ide/
.vs/
-
-# idea
-.idea/
-
-# vscode
.vscode/
-
-# Gradle cache directory
-.gradle/
-
-# Autogenerated VS/MD/Consulo solution and project files
-ExportedObj/
-.consulo/
-*.csproj
-*.unityproj
-*.sln
-*.slnx
-*.suo
+.idea/
+*.dotCover
+*.OpenCover
+*.testsettings
+*.settings
+
+# --------------------------
+# 4. 日志、缓存、临时文件
+# --------------------------
+*.log
*.tmp
-*.user
-*.userprefs
-*.pidb
-*.booproj
-*.svd
-*.pdb
-*.mdb
-*.opendb
-*.VC.db
-
-# Unity3D generated meta files
-*.pidb.meta
-*.pdb.meta
-*.mdb.meta
-
-# Unity3D generated file on crash reports
-sysinfo.txt
-
-# Builds
-*.apk
-*.aab
-*.unitypackage
-*.app
-
-# Crashlytics generated file
-crashlytics-build.properties
-
-# Packed Addressables
-/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
-
-# Temporary auto-generated Android Assets
-/[Aa]ssets/[Ss]treamingAssets/aa.meta
-/[Aa]ssets/[Ss]treamingAssets/aa/*
-
-# Game resources
-Export/
+*.temp
+*.cache
+*.pidc
+*.vspscc
+*.vssscc
+*.gpState
+*.ideprj
+*.psess
+*.svclog
+
+# --------------------------
+# 5. 生成的资源/设计器文件
+# --------------------------
+# 保留手动编写的代码,忽略自动生成的编译文件
+*.resources
+*.Designer.cs~
+*.resx~
+
+# --------------------------
+# 6. 系统/编辑器无关文件
+# --------------------------
+Thumbs.db
+.DS_Store
+desktop.ini
+*.swp
+*.swo
+*~
+
+# --------------------------
+# 7. 发布/安装包文件
+# --------------------------
+*.exe
+*.dll
+*.msi
+*.cab
+*.zip
+*.rar
+*.tar.gz
\ No newline at end of file
diff --git a/NotePad/NotePad.sln b/NotePad/NotePad.sln
new file mode 100644
index 0000000..96fdf55
--- /dev/null
+++ b/NotePad/NotePad.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.1.32328.378
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotePad", "NotePad\NotePad.csproj", "{E08D0806-C435-4728-A811-66DBD05C744F}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {E08D0806-C435-4728-A811-66DBD05C744F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E08D0806-C435-4728-A811-66DBD05C744F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E08D0806-C435-4728-A811-66DBD05C744F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E08D0806-C435-4728-A811-66DBD05C744F}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {84F37102-2E09-40FF-8A11-33B255B33FB9}
+ EndGlobalSection
+EndGlobal
diff --git a/NotePad/NotePad/Form1.Designer.cs b/NotePad/NotePad/Form1.Designer.cs
new file mode 100644
index 0000000..6e310b3
--- /dev/null
+++ b/NotePad/NotePad/Form1.Designer.cs
@@ -0,0 +1,47 @@
+namespace NotePad
+{
+ 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()
+ {
+ this.SuspendLayout();
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(584, 411);
+ this.Name = "Form1";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "Form1";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ }
+}
diff --git a/NotePad/NotePad/Form1.cs b/NotePad/NotePad/Form1.cs
new file mode 100644
index 0000000..f1b7b5e
--- /dev/null
+++ b/NotePad/NotePad/Form1.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace NotePad
+{
+ public partial class Form1 : Form
+ {
+ public Form1()
+ {
+ InitializeComponent();
+ }
+
+ }
+}
diff --git a/NotePad/NotePad/Form1.resx b/NotePad/NotePad/Form1.resx
new file mode 100644
index 0000000..f298a7b
--- /dev/null
+++ b/NotePad/NotePad/Form1.resx
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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/NotePad/NotePad/NotePad.csproj b/NotePad/NotePad/NotePad.csproj
new file mode 100644
index 0000000..130a486
--- /dev/null
+++ b/NotePad/NotePad/NotePad.csproj
@@ -0,0 +1,9 @@
+
+
+
+ WinExe
+ netcoreapp3.1
+ true
+
+
+
\ No newline at end of file
diff --git a/NotePad/NotePad/Program.cs b/NotePad/NotePad/Program.cs
new file mode 100644
index 0000000..c1e3d1e
--- /dev/null
+++ b/NotePad/NotePad/Program.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace NotePad
+{
+ internal static class Program
+ {
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ static void Main()
+ {
+ Application.SetHighDpiMode(HighDpiMode.SystemAware);
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new NotePad());
+ }
+ }
+}
diff --git a/README.md b/README.md
index 713cbb6..0dc59db 100644
--- a/README.md
+++ b/README.md
@@ -2,4 +2,16 @@
加了一行字,用于测试第二次提交
-再加一行字测试3。
\ No newline at end of file
+再加一行字测试3。
+
+
+
+开发日志1:
+
+创建新项目
+
+项目蓝图:记事本程序具有文件的新建、打开、保存功能;文字的复制、粘贴、删除功能;字体类型、格式的设置功能;查看日期时间等功能,并且用户可以根据需要显示或者隐藏工具栏和状态栏。 先画一点饼,感冒好了慢慢吃说是。
+
+
+
+开发环境:VS2022 环境使用winform(为什么不用新的net,很简单因为我暂时还不会,先写个效果后面重置嘻嘻)
\ No newline at end of file
--
cgit
From de45aece667af6a25c1840d4cdfc27935fb0b490 Mon Sep 17 00:00:00 2001
From: SmallFox <2806143047@qq.com>
Date: Sat, 4 Apr 2026 22:07:56 +0800
Subject: 请输入文本
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
改了个名,下次写多点再上传,今天搞搞测试
---
NotePad/NotePad/Form1.Designer.cs | 10 ++++++----
NotePad/NotePad/Form1.cs | 8 ++++++--
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/NotePad/NotePad/Form1.Designer.cs b/NotePad/NotePad/Form1.Designer.cs
index 6e310b3..2b0e1db 100644
--- a/NotePad/NotePad/Form1.Designer.cs
+++ b/NotePad/NotePad/Form1.Designer.cs
@@ -1,6 +1,6 @@
namespace NotePad
{
- partial class Form1
+ partial class NotePad
{
///
/// Required designer variable.
@@ -30,14 +30,16 @@
{
this.SuspendLayout();
//
- // Form1
+ // NotePad
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(584, 411);
- this.Name = "Form1";
+ this.KeyPreview = true;
+ this.Name = "NotePad";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "Form1";
+ this.Text = "记事本";
+ this.Load += new System.EventHandler(this.NotePad_Load);
this.ResumeLayout(false);
}
diff --git a/NotePad/NotePad/Form1.cs b/NotePad/NotePad/Form1.cs
index f1b7b5e..f8dfc1a 100644
--- a/NotePad/NotePad/Form1.cs
+++ b/NotePad/NotePad/Form1.cs
@@ -10,12 +10,16 @@ using System.Windows.Forms;
namespace NotePad
{
- public partial class Form1 : Form
+ public partial class NotePad : Form
{
- public Form1()
+ public NotePad()
{
InitializeComponent();
}
+ private void NotePad_Load(object sender, EventArgs e)
+ {
+
+ }
}
}
--
cgit