⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customerform.cs

📁 跟踪每个月客户的造访次数
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace WindowsApplication3
{
	/// <summary>
	/// CustomerForm 的摘要说明。
	/// </summary>
	public class CustomerForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label lblCarNo;
		private System.Windows.Forms.Label lblAddress;
		private System.Windows.Forms.Label lblName;
		private System.Windows.Forms.Label lblMake;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.TextBox textBox2;
		private System.Windows.Forms.TextBox textBox3;
		private System.Windows.Forms.TextBox textBox4;
		private System.Windows.Forms.TextBox textBox5;
		private System.Windows.Forms.Button btnSave;
		private System.Windows.Forms.Button btnEdit;
		private System.Windows.Forms.Button btnCancel;
		private System.Windows.Forms.Button btnExit;
		private System.Windows.Forms.Button btnNext;
		private System.Windows.Forms.Button btnPrevious;
		private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
		private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
		private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
		private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
		private System.Data.SqlClient.SqlConnection sqlConnection1;
		private WindowsApplication3.CustomerDataSet customerDataSet1;
		private System.Windows.Forms.TextBox txtDisplayPosition;
		private System.Windows.Forms.ErrorProvider errCustForm;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public CustomerForm()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CustomerForm));
			this.lblCarNo = new System.Windows.Forms.Label();
			this.lblAddress = new System.Windows.Forms.Label();
			this.lblName = new System.Windows.Forms.Label();
			this.lblMake = new System.Windows.Forms.Label();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.customerDataSet1 = new WindowsApplication3.CustomerDataSet();
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.textBox4 = new System.Windows.Forms.TextBox();
			this.textBox5 = new System.Windows.Forms.TextBox();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnEdit = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			this.btnExit = new System.Windows.Forms.Button();
			this.btnNext = new System.Windows.Forms.Button();
			this.btnPrevious = new System.Windows.Forms.Button();
			this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
			this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
			this.errCustForm = new System.Windows.Forms.ErrorProvider();
			((System.ComponentModel.ISupportInitialize)(this.customerDataSet1)).BeginInit();
			this.SuspendLayout();
			// 
			// lblCarNo
			// 
			this.lblCarNo.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblCarNo.Image = ((System.Drawing.Image)(resources.GetObject("lblCarNo.Image")));
			this.lblCarNo.Location = new System.Drawing.Point(24, 40);
			this.lblCarNo.Name = "lblCarNo";
			this.lblCarNo.Size = new System.Drawing.Size(80, 23);
			this.lblCarNo.TabIndex = 0;
			this.lblCarNo.Text = "Car No.";
			// 
			// lblAddress
			// 
			this.lblAddress.Image = ((System.Drawing.Image)(resources.GetObject("lblAddress.Image")));
			this.lblAddress.Location = new System.Drawing.Point(336, 40);
			this.lblAddress.Name = "lblAddress";
			this.lblAddress.Size = new System.Drawing.Size(72, 23);
			this.lblAddress.TabIndex = 0;
			this.lblAddress.Text = "Address";
			this.lblAddress.Click += new System.EventHandler(this.label2_Click);
			// 
			// lblName
			// 
			this.lblName.ForeColor = System.Drawing.Color.Black;
			this.lblName.Image = ((System.Drawing.Image)(resources.GetObject("lblName.Image")));
			this.lblName.Location = new System.Drawing.Point(32, 96);
			this.lblName.Name = "lblName";
			this.lblName.Size = new System.Drawing.Size(56, 23);
			this.lblName.TabIndex = 0;
			this.lblName.Text = "Name";
			// 
			// lblMake
			// 
			this.lblMake.Image = ((System.Drawing.Image)(resources.GetObject("lblMake.Image")));
			this.lblMake.Location = new System.Drawing.Point(336, 96);
			this.lblMake.Name = "lblMake";
			this.lblMake.Size = new System.Drawing.Size(72, 23);
			this.lblMake.TabIndex = 0;
			this.lblMake.Text = "Make";
			// 
			// textBox1
			// 
			this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.customerDataSet1, "tblCustomer.CarNo"));
			this.errCustForm.SetError(this.textBox1, "输入错误!");
			this.textBox1.Location = new System.Drawing.Point(144, 40);
			this.textBox1.Name = "textBox1";
			this.textBox1.TabIndex = 1;
			this.textBox1.Text = "textBox1";
			// 
			// customerDataSet1
			// 
			this.customerDataSet1.DataSetName = "CustomerDataSet";
			this.customerDataSet1.Locale = new System.Globalization.CultureInfo("zh-CN");
			// 
			// textBox2
			// 
			this.textBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.customerDataSet1, "tblCustomer.Address"));
			this.errCustForm.SetError(this.textBox2, "输入错误!");
			this.textBox2.Location = new System.Drawing.Point(432, 40);
			this.textBox2.Name = "textBox2";
			this.textBox2.TabIndex = 1;
			this.textBox2.Text = "textBox1";
			// 
			// textBox3
			// 
			this.textBox3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.customerDataSet1, "tblCustomer.Make"));
			this.errCustForm.SetError(this.textBox3, "输入错误!");
			this.textBox3.Location = new System.Drawing.Point(432, 88);
			this.textBox3.Name = "textBox3";
			this.textBox3.TabIndex = 1;
			this.textBox3.Text = "textBox1";
			// 
			// textBox4
			// 
			this.textBox4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.customerDataSet1, "tblCustomer.Name"));
			this.errCustForm.SetError(this.textBox4, "输入错误!");
			this.textBox4.Location = new System.Drawing.Point(144, 96);
			this.textBox4.Name = "textBox4";
			this.textBox4.TabIndex = 1;
			this.textBox4.Text = "textBox1";
			// 
			// textBox5
			// 
			this.textBox5.Location = new System.Drawing.Point(192, 224);
			this.textBox5.Name = "textBox5";
			this.textBox5.Size = new System.Drawing.Size(184, 21);
			this.textBox5.TabIndex = 1;
			this.textBox5.Text = "textBox1";
			this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged);
			// 
			// btnSave
			// 
			this.btnSave.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.Image")));
			this.btnSave.Location = new System.Drawing.Point(64, 152);
			this.btnSave.Name = "btnSave";
			this.btnSave.TabIndex = 2;
			this.btnSave.Text = "&Save";
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnEdit
			// 
			this.btnEdit.Image = ((System.Drawing.Image)(resources.GetObject("btnEdit.Image")));
			this.btnEdit.Location = new System.Drawing.Point(176, 152);
			this.btnEdit.Name = "btnEdit";
			this.btnEdit.TabIndex = 2;
			this.btnEdit.Text = "&Edit";
			this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
			// 
			// btnCancel
			// 
			this.btnCancel.Image = ((System.Drawing.Image)(resources.GetObject("btnCancel.Image")));
			this.btnCancel.Location = new System.Drawing.Point(328, 152);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(72, 23);
			this.btnCancel.TabIndex = 2;
			this.btnCancel.Text = "&Cancel";
			this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
			// 
			// btnExit
			// 
			this.btnExit.Image = ((System.Drawing.Image)(resources.GetObject("btnExit.Image")));
			this.btnExit.Location = new System.Drawing.Point(440, 152);
			this.btnExit.Name = "btnExit";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -