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

📄 addf.cs

📁 图书管理系统!!C#+olc 大小是100多k
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
using System.Data.Common;

namespace bookstore
{
	/// <summary>
	/// AddF 的摘要说明。
	/// </summary>
	public class AddF : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TabControl tabControl1;
		private System.Windows.Forms.TabPage tabPage1;
		private System.Windows.Forms.TabPage tabPage2;
		private System.Windows.Forms.TabPage tabPage3;
		private System.Windows.Forms.TabPage tabPage4;
		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.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.TextBox textBox5;
		private System.Windows.Forms.TextBox textBox6;
		private System.Windows.Forms.TextBox textBox7;
		private System.Windows.Forms.TextBox textBox8;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.TextBox textBox9;
		private System.Windows.Forms.TextBox textBox10;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.TextBox textBox11;
		private System.Windows.Forms.TextBox textBox12;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Button button5;
		private System.Windows.Forms.Button button6;
		private System.Windows.Forms.TextBox textBox15;
		private System.Windows.Forms.TextBox textBox16;
		private System.Windows.Forms.TextBox textBox17;
		private System.Windows.Forms.TextBox textBox18;
		private System.Windows.Forms.Label label15;
		private System.Windows.Forms.Label label16;
		private System.Windows.Forms.Label label17;
		private System.Windows.Forms.Label label18;
		private System.Windows.Forms.Button button7;
		private System.Windows.Forms.Button button8;
		private System.Windows.Forms.TextBox textBox19;
		private System.Windows.Forms.TextBox textBox20;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;
        SqlBean sq=new SqlBean();
		util1 util=new util1();
		public AddF()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();
			textBox1.Clear();
			textBox2.Clear();
			textBox3.Clear();
			textBox4.Clear();
			textBox5.Clear();
			textBox6.Clear();
			textBox7.Clear();
			textBox8.Clear();
			textBox9.Clear();
			textBox10.Clear();
			textBox11.Clear();
			textBox12.Clear();
			//textBox13.Clear();
            //textBox14.Clear();
			textBox15.Clear();
			textBox16.Clear();
			textBox17.Clear();
			textBox18.Clear();
			textBox19.Clear();
			textBox20.Clear();

			//
			// 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()
		{
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.button2 = new System.Windows.Forms.Button();
			this.button1 = new System.Windows.Forms.Button();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.textBox4 = new System.Windows.Forms.TextBox();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.textBox20 = new System.Windows.Forms.TextBox();
			this.textBox19 = new System.Windows.Forms.TextBox();
			this.button4 = new System.Windows.Forms.Button();
			this.label10 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.textBox10 = new System.Windows.Forms.TextBox();
			this.textBox9 = new System.Windows.Forms.TextBox();
			this.button3 = new System.Windows.Forms.Button();
			this.textBox8 = new System.Windows.Forms.TextBox();
			this.textBox7 = new System.Windows.Forms.TextBox();
			this.textBox6 = new System.Windows.Forms.TextBox();
			this.textBox5 = new System.Windows.Forms.TextBox();
			this.tabPage3 = new System.Windows.Forms.TabPage();
			this.button6 = new System.Windows.Forms.Button();
			this.button5 = new System.Windows.Forms.Button();
			this.label12 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.textBox12 = new System.Windows.Forms.TextBox();
			this.textBox11 = new System.Windows.Forms.TextBox();
			this.tabPage4 = new System.Windows.Forms.TabPage();
			this.button8 = new System.Windows.Forms.Button();
			this.button7 = new System.Windows.Forms.Button();
			this.label18 = new System.Windows.Forms.Label();
			this.label17 = new System.Windows.Forms.Label();
			this.label16 = new System.Windows.Forms.Label();
			this.label15 = new System.Windows.Forms.Label();
			this.textBox18 = new System.Windows.Forms.TextBox();
			this.textBox17 = new System.Windows.Forms.TextBox();
			this.textBox16 = new System.Windows.Forms.TextBox();
			this.textBox15 = new System.Windows.Forms.TextBox();
			this.tabControl1.SuspendLayout();
			this.tabPage1.SuspendLayout();
			this.tabPage2.SuspendLayout();
			this.tabPage3.SuspendLayout();
			this.tabPage4.SuspendLayout();
			this.SuspendLayout();
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.Add(this.tabPage1);
			this.tabControl1.Controls.Add(this.tabPage2);
			this.tabControl1.Controls.Add(this.tabPage3);
			this.tabControl1.Controls.Add(this.tabPage4);
			this.tabControl1.Location = new System.Drawing.Point(16, 16);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(312, 304);
			this.tabControl1.TabIndex = 0;
			// 
			// tabPage1
			// 
			this.tabPage1.Controls.Add(this.button2);
			this.tabPage1.Controls.Add(this.button1);
			this.tabPage1.Controls.Add(this.label4);
			this.tabPage1.Controls.Add(this.label3);
			this.tabPage1.Controls.Add(this.label2);
			this.tabPage1.Controls.Add(this.label1);
			this.tabPage1.Controls.Add(this.textBox4);
			this.tabPage1.Controls.Add(this.textBox3);
			this.tabPage1.Controls.Add(this.textBox2);
			this.tabPage1.Controls.Add(this.textBox1);
			this.tabPage1.Location = new System.Drawing.Point(4, 21);
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.Size = new System.Drawing.Size(304, 279);
			this.tabPage1.TabIndex = 0;
			this.tabPage1.Text = "增加读者";
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(176, 224);
			this.button2.Name = "button2";
			this.button2.TabIndex = 9;
			this.button2.Text = "取消";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(40, 224);
			this.button1.Name = "button1";
			this.button1.TabIndex = 8;
			this.button1.Text = "增加";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(24, 168);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(104, 24);
			this.label4.TabIndex = 7;
			this.label4.Text = "已借数量:";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(24, 120);
			this.label3.Name = "label3";
			this.label3.TabIndex = 6;
			this.label3.Text = "类型编号:";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(24, 72);
			this.label2.Name = "label2";
			this.label2.TabIndex = 5;
			this.label2.Text = "姓名:";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(24, 24);
			this.label1.Name = "label1";
			this.label1.TabIndex = 4;
			this.label1.Text = "读者编号:";
			// 
			// textBox4
			// 
			this.textBox4.Location = new System.Drawing.Point(160, 168);
			this.textBox4.Name = "textBox4";
			this.textBox4.TabIndex = 3;
			this.textBox4.Text = "textBox4";
			// 
			// textBox3
			// 
			this.textBox3.Location = new System.Drawing.Point(160, 120);
			this.textBox3.Name = "textBox3";
			this.textBox3.TabIndex = 2;
			this.textBox3.Text = "textBox3";
			// 
			// textBox2
			// 
			this.textBox2.Location = new System.Drawing.Point(160, 72);
			this.textBox2.Name = "textBox2";
			this.textBox2.TabIndex = 1;
			this.textBox2.Text = "textBox2";
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(160, 24);
			this.textBox1.Name = "textBox1";
			this.textBox1.TabIndex = 0;
			this.textBox1.Text = "textBox1";
			// 
			// tabPage2
			// 
			this.tabPage2.Controls.Add(this.textBox20);
			this.tabPage2.Controls.Add(this.textBox19);
			this.tabPage2.Controls.Add(this.button4);
			this.tabPage2.Controls.Add(this.label10);
			this.tabPage2.Controls.Add(this.label9);
			this.tabPage2.Controls.Add(this.label8);
			this.tabPage2.Controls.Add(this.label7);
			this.tabPage2.Controls.Add(this.label6);
			this.tabPage2.Controls.Add(this.label5);
			this.tabPage2.Controls.Add(this.textBox10);
			this.tabPage2.Controls.Add(this.textBox9);
			this.tabPage2.Controls.Add(this.button3);
			this.tabPage2.Controls.Add(this.textBox8);
			this.tabPage2.Controls.Add(this.textBox7);
			this.tabPage2.Controls.Add(this.textBox6);
			this.tabPage2.Controls.Add(this.textBox5);
			this.tabPage2.Location = new System.Drawing.Point(4, 21);
			this.tabPage2.Name = "tabPage2";
			this.tabPage2.Size = new System.Drawing.Size(304, 279);
			this.tabPage2.TabIndex = 1;
			this.tabPage2.Text = "增加图书";
			// 
			// textBox20
			// 
			this.textBox20.Location = new System.Drawing.Point(224, 176);
			this.textBox20.Name = "textBox20";
			this.textBox20.Size = new System.Drawing.Size(48, 21);
			this.textBox20.TabIndex = 15;
			this.textBox20.Text = "textBox20";
			// 
			// textBox19
			// 
			this.textBox19.Location = new System.Drawing.Point(160, 176);
			this.textBox19.Name = "textBox19";
			this.textBox19.Size = new System.Drawing.Size(48, 21);
			this.textBox19.TabIndex = 14;
			this.textBox19.Text = "textBox19";
			// 
			// button4
			// 
			this.button4.Location = new System.Drawing.Point(176, 232);
			this.button4.Name = "button4";
			this.button4.TabIndex = 13;
			this.button4.Text = "取消";
			this.button4.Click += new System.EventHandler(this.button4_Click);
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(8, 176);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(72, 23);
			this.label10.TabIndex = 12;
			this.label10.Text = "出版日期:";
			this.label10.Click += new System.EventHandler(this.label10_Click);
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(40, 144);
			this.label9.Name = "label9";
			this.label9.TabIndex = 11;
			this.label9.Text = "出版社:";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(40, 112);
			this.label8.Name = "label8";
			this.label8.TabIndex = 10;
			this.label8.Text = "数量:";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(40, 80);
			this.label7.Name = "label7";
			this.label7.TabIndex = 9;
			this.label7.Text = "单价:";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(40, 48);
			this.label6.Name = "label6";
			this.label6.TabIndex = 8;
			this.label6.Text = "书名:";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(40, 16);
			this.label5.Name = "label5";
			this.label5.TabIndex = 7;
			this.label5.Text = "图书编号:";
			// 
			// textBox10
			// 
			this.textBox10.Location = new System.Drawing.Point(96, 176);
			this.textBox10.Name = "textBox10";
			this.textBox10.Size = new System.Drawing.Size(48, 21);
			this.textBox10.TabIndex = 6;
			this.textBox10.Text = "textBox10";
			// 
			// textBox9
			// 
			this.textBox9.Location = new System.Drawing.Point(168, 144);
			this.textBox9.Name = "textBox9";
			this.textBox9.TabIndex = 5;
			this.textBox9.Text = "textBox9";
			// 

⌨️ 快捷键说明

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