optimise files

This commit is contained in:
biss committed 2025-11-25 20:14:10 +08:00
1 parent bb4a37acc4
commit 4e148364a9
171 files changed
+6555

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
+242
View File
@@ -0,0 +1,242 @@
namespace WindowsFormsApp2
{
partial class Diaocha
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.Name = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.button1 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.Message = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(163, 39);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(180, 28);
this.label1.TabIndex = 0;
this.label1.Text = "个人信息调查";
//
// Name
//
this.Name.Location = new System.Drawing.Point(150, 95);
this.Name.Name = "Name";
this.Name.Size = new System.Drawing.Size(238, 28);
this.Name.TabIndex = 1;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.radioButton2);
this.groupBox1.Controls.Add(this.radioButton1);
this.groupBox1.Location = new System.Drawing.Point(150, 163);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(238, 50);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false;
//
// radioButton2
//
this.radioButton2.AutoSize = true;
this.radioButton2.Location = new System.Drawing.Point(125, 14);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(51, 22);
this.radioButton2.TabIndex = 1;
this.radioButton2.TabStop = true;
this.radioButton2.Text = "女";
this.radioButton2.UseVisualStyleBackColor = true;
//
// radioButton1
//
this.radioButton1.AutoSize = true;
this.radioButton1.Location = new System.Drawing.Point(18, 14);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(51, 22);
this.radioButton1.TabIndex = 0;
this.radioButton1.TabStop = true;
this.radioButton1.Text = "男";
this.radioButton1.UseVisualStyleBackColor = true;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.checkBox4);
this.groupBox2.Controls.Add(this.checkBox3);
this.groupBox2.Controls.Add(this.checkBox2);
this.groupBox2.Controls.Add(this.checkBox1);
this.groupBox2.Location = new System.Drawing.Point(150, 259);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(238, 100);
this.groupBox2.TabIndex = 3;
this.groupBox2.TabStop = false;
//
// checkBox4
//
this.checkBox4.AutoSize = true;
this.checkBox4.Location = new System.Drawing.Point(125, 65);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(70, 22);
this.checkBox4.TabIndex = 3;
this.checkBox4.Text = "运动";
this.checkBox4.UseVisualStyleBackColor = true;
//
// checkBox3
//
this.checkBox3.AutoSize = true;
this.checkBox3.Location = new System.Drawing.Point(18, 66);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(70, 22);
this.checkBox3.TabIndex = 2;
this.checkBox3.Text = "阅读";
this.checkBox3.UseVisualStyleBackColor = true;
//
// checkBox2
//
this.checkBox2.AutoSize = true;
this.checkBox2.Location = new System.Drawing.Point(125, 27);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(70, 22);
this.checkBox2.TabIndex = 1;
this.checkBox2.Text = "旅游";
this.checkBox2.UseVisualStyleBackColor = true;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(18, 28);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(70, 22);
this.checkBox1.TabIndex = 0;
this.checkBox1.Text = "音乐";
this.checkBox1.UseVisualStyleBackColor = true;
//
// button1
//
this.button1.Location = new System.Drawing.Point(198, 388);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 29);
this.button1.TabIndex = 4;
this.button1.Text = "提交";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(61, 98);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(44, 18);
this.label2.TabIndex = 5;
this.label2.Text = "姓名";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(64, 176);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(44, 18);
this.label3.TabIndex = 6;
this.label3.Text = "性别";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(64, 268);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(44, 18);
this.label4.TabIndex = 7;
this.label4.Text = "爱好";
//
// Message
//
this.Message.AutoSize = true;
this.Message.Location = new System.Drawing.Point(96, 428);
this.Message.Name = "Message";
this.Message.Size = new System.Drawing.Size(62, 18);
this.Message.TabIndex = 8;
this.Message.Text = "label5";
//
// Diaocha
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(460, 523);
this.Controls.Add(this.Message);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.button1);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.Name);
this.Controls.Add(this.label1);
this.Name = "Diaocha";
this.Text = "调查";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox Name;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.CheckBox checkBox4;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label Message;
}
}
+39
View File
@@ -0,0 +1,39 @@
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 WindowsFormsApp2
{
public partial class Diaocha : Form
{
public Diaocha()
{
InitializeComponent();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
Message.Text = Name + "您好!";
if (radioButton1.Checked) Message.Text += "\n 您的性别是:" + radioButton1.Text;
else if (radioButton2.Checked) Message.Text += "\n 您的性别是:" + radioButton2.Text;
Message.Text += "\n 您的爱好是:";
if (checkBox1.Checked) Message.Text += checkBox1.Text + "";
if (checkBox2.Checked) Message.Text += checkBox2.Text + "";
if (checkBox3.Checked) Message.Text += checkBox3.Text + "";
if (checkBox4.Checked) Message.Text += checkBox4.Text + "";
if (!checkBox1.Checked && !checkBox2.Checked && !checkBox3.Checked && !checkBox4.Checked)
Message.Text += "您居然没有兴趣爱好!";
}
}
}
Loaded 3 of 171 files, more files were not shown because too many files have changed in this diff. Show more