窗体设计器:工具箱、拖放、属性与事件窗口,读写 VS 格式的 Designer.cs
- Designer.cs 在浏览器端解析为语句列表,未改动的语句保留原文: 教材 25 个参考窗体和全部示例读入再写出逐字节不变 - 编辑操作:添加 / 删除 / 移动 / 改名控件、属性、事件、列表项; 布局语句增删规则与 VS 一致(对全部现有文件执行无变化) - 双击控件或事件:绑定事件并在窗体代码末尾插入处理方法,跳到代码 - 预览复用运行时的 ControlView,设计时与运行时外观一致 - 修正:窗体属性 this.ClientSize = new Size(...) 被误认成创建控件; 示例 Designer.cs 的块头注释改为 VS 的 "// " 格式 - 测试:73 个(读写往返、布局规则、编辑操作、插入事件处理方法) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
03e80ce2e2
commit
ea5a25af06
20 files changed
+2767
-132
No files matched your search
Generated
+18
-18
@@ -38,16 +38,16 @@ namespace LED显示屏
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
//
|
||||
// led
|
||||
//
|
||||
//
|
||||
this.led.Location = new System.Drawing.Point(12, 12);
|
||||
this.led.Name = "led";
|
||||
this.led.Size = new System.Drawing.Size(750, 121);
|
||||
this.led.TabIndex = 0;
|
||||
//
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.com_Port);
|
||||
this.groupBox1.Controls.Add(this.btn_Send);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
@@ -60,18 +60,18 @@ namespace LED显示屏
|
||||
this.groupBox1.TabIndex = 1;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "LED控制";
|
||||
//
|
||||
//
|
||||
// com_Port
|
||||
//
|
||||
//
|
||||
this.com_Port.FormattingEnabled = true;
|
||||
this.com_Port.Location = new System.Drawing.Point(101, 24);
|
||||
this.com_Port.Name = "com_Port";
|
||||
this.com_Port.Size = new System.Drawing.Size(173, 20);
|
||||
this.com_Port.TabIndex = 6;
|
||||
this.com_Port.Click += new System.EventHandler(this.com_Port_Click);
|
||||
//
|
||||
//
|
||||
// btn_Send
|
||||
//
|
||||
//
|
||||
this.btn_Send.Location = new System.Drawing.Point(301, 91);
|
||||
this.btn_Send.Name = "btn_Send";
|
||||
this.btn_Send.Size = new System.Drawing.Size(75, 23);
|
||||
@@ -79,25 +79,25 @@ namespace LED显示屏
|
||||
this.btn_Send.Text = "推 送";
|
||||
this.btn_Send.UseVisualStyleBackColor = true;
|
||||
this.btn_Send.Click += new System.EventHandler(this.btn_Send_Click);
|
||||
//
|
||||
//
|
||||
// label2
|
||||
//
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(16, 67);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(71, 12);
|
||||
this.label2.TabIndex = 4;
|
||||
this.label2.Text = "推送LED信息";
|
||||
//
|
||||
//
|
||||
// txt_SendText
|
||||
//
|
||||
//
|
||||
this.txt_SendText.Location = new System.Drawing.Point(101, 64);
|
||||
this.txt_SendText.Name = "txt_SendText";
|
||||
this.txt_SendText.Size = new System.Drawing.Size(286, 21);
|
||||
this.txt_SendText.TabIndex = 3;
|
||||
//
|
||||
//
|
||||
// btn_Open
|
||||
//
|
||||
//
|
||||
this.btn_Open.Location = new System.Drawing.Point(301, 20);
|
||||
this.btn_Open.Name = "btn_Open";
|
||||
this.btn_Open.Size = new System.Drawing.Size(86, 23);
|
||||
@@ -105,18 +105,18 @@ namespace LED显示屏
|
||||
this.btn_Open.Text = "打 开";
|
||||
this.btn_Open.UseVisualStyleBackColor = true;
|
||||
this.btn_Open.Click += new System.EventHandler(this.btn_Open_Click);
|
||||
//
|
||||
//
|
||||
// label1
|
||||
//
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(16, 23);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(71, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "串 口";
|
||||
//
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(774, 308);
|
||||
|
||||
Reference in new issue
Block a user