📄 summaryform.cs
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;namespace BookMulti{ public class SummaryForm : BookMulti.BaseForm {
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
public System.Windows.Forms.TextBox salesTotalTextBox;
public System.Windows.Forms.TextBox totalStudentDiscountTextBox;
public System.Windows.Forms.TextBox salesCountTextBox; public System.ComponentModel.IContainer components = null; public SummaryForm() { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } /// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region 设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.salesTotalTextBox = new System.Windows.Forms.TextBox();
this.totalStudentDiscountTextBox = new System.Windows.Forms.TextBox();
this.salesCountTextBox = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// okButton
//
this.okButton.Name = "okButton";
this.okButton.Click += new System.EventHandler(this.okButton_Click);
//
// label1
//
this.label1.Name = "label1";
//
// label2
//
this.label2.Location = new System.Drawing.Point(16, 120);
this.label2.Name = "label2";
this.label2.TabIndex = 2;
this.label2.Text = "Sales Total:";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label3
//
this.label3.Location = new System.Drawing.Point(16, 192);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(112, 32);
this.label3.TabIndex = 2;
this.label3.Text = "Sales Count";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label4
//
this.label4.Location = new System.Drawing.Point(16, 288);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(168, 32);
this.label4.TabIndex = 2;
this.label4.Text = "Total Student Discount:";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// salesTotalTextBox
//
this.salesTotalTextBox.Location = new System.Drawing.Point(240, 120);
this.salesTotalTextBox.Name = "salesTotalTextBox";
this.salesTotalTextBox.TabIndex = 3;
this.salesTotalTextBox.Text = "";
this.salesTotalTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.salesTotalTextBox.TextChanged += new System.EventHandler(this.salesTotalTextBox_TextChanged);
//
// totalStudentDiscountTextBox
//
this.totalStudentDiscountTextBox.Location = new System.Drawing.Point(240, 288);
this.totalStudentDiscountTextBox.Name = "totalStudentDiscountTextBox";
this.totalStudentDiscountTextBox.TabIndex = 3;
this.totalStudentDiscountTextBox.Text = "";
this.totalStudentDiscountTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// salesCountTextBox
//
this.salesCountTextBox.Location = new System.Drawing.Point(240, 208);
this.salesCountTextBox.Name = "salesCountTextBox";
this.salesCountTextBox.TabIndex = 3;
this.salesCountTextBox.Text = "";
this.salesCountTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// SummaryForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(8, 18);
this.ClientSize = new System.Drawing.Size(696, 592);
this.Controls.Add(this.salesTotalTextBox);
this.Controls.Add(this.label2);
this.Controls.Add(this.label3);
this.Controls.Add(this.label4);
this.Controls.Add(this.totalStudentDiscountTextBox);
this.Controls.Add(this.salesCountTextBox);
this.Name = "SummaryForm";
this.Text = "SummaryForm";
this.Load += new System.EventHandler(this.SummaryForm_Load);
this.Controls.SetChildIndex(this.salesCountTextBox, 0);
this.Controls.SetChildIndex(this.totalStudentDiscountTextBox, 0);
this.Controls.SetChildIndex(this.okButton, 0);
this.Controls.SetChildIndex(this.label1, 0);
this.Controls.SetChildIndex(this.label4, 0);
this.Controls.SetChildIndex(this.label3, 0);
this.Controls.SetChildIndex(this.label2, 0);
this.Controls.SetChildIndex(this.salesTotalTextBox, 0);
this.ResumeLayout(false);
} #endregion
private void SummaryForm_Load(object sender, System.EventArgs e)
{
}
protected override void okButton_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void salesTotalTextBox_TextChanged(object sender, System.EventArgs e)
{
} }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -