?? updatef.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace bookstore
{
/// <summary>
/// UpdateF 的摘要說明。
/// </summary>
public class UpdateF : 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.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 button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox textBox11;
private System.Windows.Forms.TextBox textBox12;
private System.Windows.Forms.TextBox textBox13;
private System.Windows.Forms.TextBox textBox14;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
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.Label label19;
private System.Windows.Forms.TextBox textBox19;
private System.Windows.Forms.TextBox textBox20;
private System.Windows.Forms.TextBox textBox21;
private System.Windows.Forms.TextBox textBox22;
private System.Windows.Forms.TextBox textBox23;
private System.Windows.Forms.TextBox textBox24;
/// <summary>
/// 必需的設計器變量。
/// </summary>
private System.ComponentModel.Container components = null;
util1 util=new util1();
SqlBean sq=new SqlBean();
public UpdateF()
{
//
// 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();
textBox21.Clear();
textBox22.Clear();
textBox23.Clear();
textBox24.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.button3 = 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.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.textBox24 = new System.Windows.Forms.TextBox();
this.textBox23 = new System.Windows.Forms.TextBox();
this.textBox22 = new System.Windows.Forms.TextBox();
this.textBox21 = new System.Windows.Forms.TextBox();
this.label19 = new System.Windows.Forms.Label();
this.button6 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.label14 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.textBox14 = new System.Windows.Forms.TextBox();
this.textBox13 = new System.Windows.Forms.TextBox();
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, 24);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(344, 288);
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(336, 263);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "修改讀者信息";
this.tabPage1.Click += new System.EventHandler(this.tabPage1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(200, 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(64, 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(64, 176);
this.label4.Name = "label4";
this.label4.TabIndex = 7;
this.label4.Text = "已借數量:";
//
// label3
//
this.label3.Location = new System.Drawing.Point(64, 128);
this.label3.Name = "label3";
this.label3.TabIndex = 6;
this.label3.Text = "類型編號:";
//
// label2
//
this.label2.Location = new System.Drawing.Point(64, 80);
this.label2.Name = "label2";
this.label2.TabIndex = 5;
this.label2.Text = "讀者姓名:";
//
// label1
//
this.label1.Location = new System.Drawing.Point(64, 24);
this.label1.Name = "label1";
this.label1.TabIndex = 4;
this.label1.Text = "讀者編號:";
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(192, 176);
this.textBox4.Name = "textBox4";
this.textBox4.TabIndex = 3;
this.textBox4.Text = "textBox4";
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(192, 128);
this.textBox3.Name = "textBox3";
this.textBox3.TabIndex = 2;
this.textBox3.Text = "textBox3";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(192, 72);
this.textBox2.Name = "textBox2";
this.textBox2.TabIndex = 1;
this.textBox2.Text = "textBox2";
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(192, 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.button3);
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.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(336, 263);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "修改圖書信息";
//
// textBox20
//
this.textBox20.Location = new System.Drawing.Point(256, 168);
this.textBox20.Name = "textBox20";
this.textBox20.Size = new System.Drawing.Size(56, 21);
this.textBox20.TabIndex = 15;
this.textBox20.Text = "textBox20";
//
// textBox19
//
this.textBox19.Location = new System.Drawing.Point(184, 168);
this.textBox19.Name = "textBox19";
this.textBox19.Size = new System.Drawing.Size(56, 21);
this.textBox19.TabIndex = 14;
this.textBox19.Text = "textBox19";
//
// button4
//
this.button4.Location = new System.Drawing.Point(200, 216);
this.button4.Name = "button4";
this.button4.TabIndex = 13;
this.button4.Text = "取消";
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(56, 216);
this.button3.Name = "button3";
this.button3.TabIndex = 12;
this.button3.Text = "更新";
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// label10
//
this.label10.Location = new System.Drawing.Point(8, 168);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(72, 23);
this.label10.TabIndex = 11;
this.label10.Text = "出版日期:";
//
// label9
//
this.label9.Location = new System.Drawing.Point(48, 136);
this.label9.Name = "label9";
this.label9.TabIndex = 10;
this.label9.Text = "出版社:";
//
// label8
//
this.label8.Location = new System.Drawing.Point(48, 104);
this.label8.Name = "label8";
this.label8.TabIndex = 9;
this.label8.Text = "數量:";
//
// label7
//
this.label7.Location = new System.Drawing.Point(48, 72);
this.label7.Name = "label7";
this.label7.TabIndex = 8;
this.label7.Text = "單價:";
//
// label6
//
this.label6.Location = new System.Drawing.Point(48, 40);
this.label6.Name = "label6";
this.label6.TabIndex = 7;
this.label6.Text = "書名:";
//
// label5
//
this.label5.Location = new System.Drawing.Point(48, 8);
this.label5.Name = "label5";
this.label5.TabIndex = 6;
this.label5.Text = "圖書編號:";
//
// textBox10
//
this.textBox10.Location = new System.Drawing.Point(104, 168);
this.textBox10.Name = "textBox10";
this.textBox10.Size = new System.Drawing.Size(56, 21);
this.textBox10.TabIndex = 5;
this.textBox10.Text = "textBox10";
//
// textBox9
//
this.textBox9.Location = new System.Drawing.Point(200, 136);
this.textBox9.Name = "textBox9";
this.textBox9.TabIndex = 4;
this.textBox9.Text = "textBox9";
//
// textBox8
//
this.textBox8.Location = new System.Drawing.Point(200, 104);
this.textBox8.Name = "textBox8";
this.textBox8.TabIndex = 3;
this.textBox8.Text = "textBox8";
//
// textBox7
//
this.textBox7.Location = new System.Drawing.Point(200, 72);
this.textBox7.Name = "textBox7";
this.textBox7.TabIndex = 2;
this.textBox7.Text = "textBox7";
//
// textBox6
//
this.textBox6.Location = new System.Drawing.Point(200, 40);
this.textBox6.Name = "textBox6";
this.textBox6.TabIndex = 1;
this.textBox6.Text = "textBox6";
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(200, 8);
this.textBox5.Name = "textBox5";
this.textBox5.TabIndex = 0;
this.textBox5.Text = "textBox5";
//
// tabPage3
//
this.tabPage3.Controls.Add(this.textBox24);
this.tabPage3.Controls.Add(this.textBox23);
this.tabPage3.Controls.Add(this.textBox22);
this.tabPage3.Controls.Add(this.textBox21);
this.tabPage3.Controls.Add(this.label19);
this.tabPage3.Controls.Add(this.button6);
this.tabPage3.Controls.Add(this.button5);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -