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

📄 frmmain_gj.cs

📁 因本人正在学习中
💻 CS
📖 第 1 页 / 共 4 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using System.IO;
namespace 图书
{
	/// <summary>
	/// frmMain_gj 的摘要说明。
	/// </summary>
	public class frmMain_gj : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TabPage tabp_sj;
		private System.Windows.Forms.TabControl tabControl1;
		private System.Windows.Forms.TabPage tabp_dz;
		private System.Windows.Forms.DataGrid dataGrid1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txt1;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.ToolBarButton tobtn_Select;
		private System.Windows.Forms.ToolBarButton tobtn_Intest;
		private System.Windows.Forms.ToolBarButton tobtn_Updata;
		private System.Windows.Forms.ToolBarButton tobtn_Delete;
		private System.Windows.Forms.ToolBarButton tobtn_Close;
		private System.Windows.Forms.ToolBar toolBar1;
		private System.Windows.Forms.ImageList imageList1;
		private System.Windows.Forms.DataGrid dataGrid2;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.ToolBar toolBar2;
		private System.Windows.Forms.ToolBarButton tobtn2select;
		private System.Windows.Forms.ToolBarButton tobtn2new;
		private System.Windows.Forms.ToolBarButton tobtn2updata;
		private System.Windows.Forms.ToolBarButton tobtn2delete;
		private System.Windows.Forms.ToolBarButton tobtn2close;
		private System.Windows.Forms.DataGrid dataGrid3;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.ToolBar toolBar3;
		private System.Windows.Forms.ToolBarButton tobtnselect;
		private System.Windows.Forms.ToolBarButton tobtnnew;
		private System.Windows.Forms.ToolBarButton tobtnupdata;
		private System.Windows.Forms.ToolBarButton tobtndelete;
		private System.Windows.Forms.ToolBarButton tobtnclose;
		private System.Windows.Forms.TextBox txt2;
		private System.Windows.Forms.TextBox txt12;
		private System.ComponentModel.IContainer components;

		private System.Windows.Forms.ToolBarButton toolBarButton1;
		private System.Windows.Forms.ToolBarButton toolBarButton2;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.ToolBar toolBar4;
		private System.Windows.Forms.ToolBarButton toolBarButton3;
		private System.Windows.Forms.ToolBarButton toolBarButton4;
		private System.Windows.Forms.ToolBarButton toolBarButton6;
		private System.Windows.Forms.ToolBarButton toolBarButton7;
		private System.Windows.Forms.ToolBarButton toolBarButton8;
		private System.Windows.Forms.GroupBox groupBox5;
		private System.Windows.Forms.DataGrid datag_js;
		private System.Windows.Forms.TextBox txt_js;
		private System.Windows.Forms.TabPage tabPage1;
		private System.Windows.Forms.TabPage tab_hs;
		private System.Windows.Forms.ToolBar toolBar5;
		private System.Windows.Forms.ToolBarButton toolBarButton11;
		private System.Windows.Forms.ToolBarButton toolBarButton13;
		private System.Windows.Forms.ToolBarButton toolBarButton14;
		private System.Windows.Forms.ToolBarButton toolBarButton15;
		private System.Windows.Forms.GroupBox groupBox7;
		private System.Windows.Forms.DataGrid dataG_hs;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.TextBox txt_hs;
		private System.Windows.Forms.ToolBarButton toolBarButton10;

public static DataSet dx;
		public frmMain_gj()
		{
			//
			// 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()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmMain_gj));
			this.tabp_sj = new System.Windows.Forms.TabPage();
			this.dataGrid2 = new System.Windows.Forms.DataGrid();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.label2 = new System.Windows.Forms.Label();
			this.txt2 = new System.Windows.Forms.TextBox();
			this.toolBar2 = new System.Windows.Forms.ToolBar();
			this.tobtn2select = new System.Windows.Forms.ToolBarButton();
			this.tobtn2new = new System.Windows.Forms.ToolBarButton();
			this.tobtn2updata = new System.Windows.Forms.ToolBarButton();
			this.tobtn2delete = new System.Windows.Forms.ToolBarButton();
			this.tobtn2close = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabp_dz = new System.Windows.Forms.TabPage();
			this.dataGrid3 = new System.Windows.Forms.DataGrid();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.txt12 = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.toolBar3 = new System.Windows.Forms.ToolBar();
			this.tobtnselect = new System.Windows.Forms.ToolBarButton();
			this.tobtnnew = new System.Windows.Forms.ToolBarButton();
			this.tobtnupdata = new System.Windows.Forms.ToolBarButton();
			this.tobtndelete = new System.Windows.Forms.ToolBarButton();
			this.tobtnclose = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.toolBar4 = new System.Windows.Forms.ToolBar();
			this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
			this.groupBox5 = new System.Windows.Forms.GroupBox();
			this.datag_js = new System.Windows.Forms.DataGrid();
			this.label4 = new System.Windows.Forms.Label();
			this.txt_js = new System.Windows.Forms.TextBox();
			this.dataGrid1 = new System.Windows.Forms.DataGrid();
			this.label1 = new System.Windows.Forms.Label();
			this.txt1 = new System.Windows.Forms.TextBox();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.tobtn_Select = new System.Windows.Forms.ToolBarButton();
			this.tobtn_Intest = new System.Windows.Forms.ToolBarButton();
			this.tobtn_Updata = new System.Windows.Forms.ToolBarButton();
			this.tobtn_Delete = new System.Windows.Forms.ToolBarButton();
			this.tobtn_Close = new System.Windows.Forms.ToolBarButton();
			this.toolBar1 = new System.Windows.Forms.ToolBar();
			this.tab_hs = new System.Windows.Forms.TabPage();
			this.toolBar5 = new System.Windows.Forms.ToolBar();
			this.toolBarButton11 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton13 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton14 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton15 = new System.Windows.Forms.ToolBarButton();
			this.groupBox7 = new System.Windows.Forms.GroupBox();
			this.dataG_hs = new System.Windows.Forms.DataGrid();
			this.label14 = new System.Windows.Forms.Label();
			this.txt_hs = new System.Windows.Forms.TextBox();
			this.toolBarButton10 = new System.Windows.Forms.ToolBarButton();
			this.tabp_sj.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).BeginInit();
			this.groupBox2.SuspendLayout();
			this.tabControl1.SuspendLayout();
			this.tabp_dz.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid3)).BeginInit();
			this.groupBox3.SuspendLayout();
			this.tabPage1.SuspendLayout();
			this.groupBox5.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.datag_js)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
			this.tab_hs.SuspendLayout();
			this.groupBox7.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataG_hs)).BeginInit();
			this.SuspendLayout();
			// 
			// tabp_sj
			// 
			this.tabp_sj.Controls.Add(this.dataGrid2);
			this.tabp_sj.Controls.Add(this.groupBox2);
			this.tabp_sj.Controls.Add(this.toolBar2);
			this.tabp_sj.ForeColor = System.Drawing.Color.Blue;
			this.tabp_sj.Location = new System.Drawing.Point(4, 21);
			this.tabp_sj.Name = "tabp_sj";
			this.tabp_sj.Size = new System.Drawing.Size(768, 471);
			this.tabp_sj.TabIndex = 1;
			this.tabp_sj.Text = "书籍信息";
			this.tabp_sj.Click += new System.EventHandler(this.tabp_sj_Click);
			// 
			// dataGrid2
			// 
			this.dataGrid2.BackgroundColor = System.Drawing.Color.LightSkyBlue;
			this.dataGrid2.CaptionBackColor = System.Drawing.Color.LightSkyBlue;
			this.dataGrid2.CaptionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.dataGrid2.CaptionVisible = false;
			this.dataGrid2.DataMember = "";
			this.dataGrid2.Dock = System.Windows.Forms.DockStyle.Fill;
			this.dataGrid2.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.dataGrid2.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGrid2.Location = new System.Drawing.Point(0, 88);
			this.dataGrid2.Name = "dataGrid2";
			this.dataGrid2.ReadOnly = true;
			this.dataGrid2.Size = new System.Drawing.Size(768, 383);
			this.dataGrid2.TabIndex = 38;
			this.dataGrid2.Click += new System.EventHandler(this.dataGrid2_Click);
			this.dataGrid2.Navigate += new System.Windows.Forms.NavigateEventHandler(this.dataGrid2_Navigate);
			// 
			// groupBox2
			// 
			this.groupBox2.BackColor = System.Drawing.SystemColors.Control;
			this.groupBox2.Controls.Add(this.label2);
			this.groupBox2.Controls.Add(this.txt2);
			this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
			this.groupBox2.Location = new System.Drawing.Point(0, 41);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(768, 47);
			this.groupBox2.TabIndex = 37;
			this.groupBox2.TabStop = false;
			this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter);
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(40, 16);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 24);
			this.label2.TabIndex = 3;
			this.label2.Text = "书籍编号:";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.label2.Click += new System.EventHandler(this.label2_Click);
			// 
			// txt2
			// 
			this.txt2.Location = new System.Drawing.Point(136, 16);
			this.txt2.Name = "txt2";
			this.txt2.TabIndex = 2;
			this.txt2.Text = "";
			this.txt2.TextChanged += new System.EventHandler(this.txt2_TextChanged);
			// 
			// toolBar2
			// 
			this.toolBar2.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																						this.tobtn2select,
																						this.tobtn2new,
																						this.tobtn2updata,
																						this.tobtn2delete,
																						this.tobtn2close,
																						this.toolBarButton1});
			this.toolBar2.DropDownArrows = true;
			this.toolBar2.ImageList = this.imageList1;
			this.toolBar2.Location = new System.Drawing.Point(0, 0);
			this.toolBar2.Name = "toolBar2";
			this.toolBar2.ShowToolTips = true;
			this.toolBar2.Size = new System.Drawing.Size(768, 41);
			this.toolBar2.TabIndex = 36;
			this.toolBar2.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar2_ButtonClick);
			// 
			// tobtn2select
			// 
			this.tobtn2select.ImageIndex = 0;
			this.tobtn2select.Text = "查询";
			this.tobtn2select.ToolTipText = "查询";
			// 
			// tobtn2new
			// 
			this.tobtn2new.ImageIndex = 1;
			this.tobtn2new.Text = "新增";
			// 
			// tobtn2updata
			// 
			this.tobtn2updata.ImageIndex = 2;
			this.tobtn2updata.Text = "修改";
			this.tobtn2updata.ToolTipText = "修改";
			// 
			// tobtn2delete
			// 
			this.tobtn2delete.ImageIndex = 3;
			this.tobtn2delete.Text = "删除";
			this.tobtn2delete.ToolTipText = "删除";
			// 
			// tobtn2close
			// 
			this.tobtn2close.ImageIndex = 4;
			this.tobtn2close.Text = "退出";
			// 
			// toolBarButton1
			// 
			this.toolBarButton1.ImageIndex = 6;
			this.toolBarButton1.Text = "刷新";
			this.toolBarButton1.ToolTipText = "刷新";
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.Add(this.tabp_dz);
			this.tabControl1.Controls.Add(this.tabp_sj);
			this.tabControl1.Controls.Add(this.tabPage1);
			this.tabControl1.Controls.Add(this.tab_hs);
			this.tabControl1.ItemSize = new System.Drawing.Size(60, 17);
			this.tabControl1.Location = new System.Drawing.Point(0, 0);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(776, 496);
			this.tabControl1.TabIndex = 0;
			this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
			// 
			// tabp_dz
			// 
			this.tabp_dz.Controls.Add(this.dataGrid3);
			this.tabp_dz.Controls.Add(this.groupBox3);
			this.tabp_dz.Controls.Add(this.toolBar3);
			this.tabp_dz.ForeColor = System.Drawing.Color.Blue;
			this.tabp_dz.Location = new System.Drawing.Point(4, 21);
			this.tabp_dz.Name = "tabp_dz";
			this.tabp_dz.Size = new System.Drawing.Size(768, 471);
			this.tabp_dz.TabIndex = 0;
			this.tabp_dz.Text = "读者信息";
			this.tabp_dz.Click += new System.EventHandler(this.tabp_dz_Click);
			// 
			// dataGrid3
			// 
			this.dataGrid3.BackgroundColor = System.Drawing.Color.LightSkyBlue;
			this.dataGrid3.CaptionBackColor = System.Drawing.Color.LightSkyBlue;
			this.dataGrid3.CaptionForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.dataGrid3.CaptionVisible = false;
			this.dataGrid3.DataMember = "";
			this.dataGrid3.Dock = System.Windows.Forms.DockStyle.Fill;
			this.dataGrid3.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.dataGrid3.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGrid3.Location = new System.Drawing.Point(0, 97);
			this.dataGrid3.Name = "dataGrid3";
			this.dataGrid3.ReadOnly = true;
			this.dataGrid3.Size = new System.Drawing.Size(768, 374);
			this.dataGrid3.TabIndex = 35;
			this.dataGrid3.Click += new System.EventHandler(this.dataGrid3_Click);
			this.dataGrid3.Navigate += new System.Windows.Forms.NavigateEventHandler(this.dataGrid3_Navigate);
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.txt12);
			this.groupBox3.Controls.Add(this.label3);
			this.groupBox3.Dock = System.Windows.Forms.DockStyle.Top;
			this.groupBox3.Location = new System.Drawing.Point(0, 41);

⌨️ 快捷键说明

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