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

📄 主窗体.cs

📁 图书管理系统,.net2003+sql2000,分为三个模块,用户端,操作员端,系统管理员端.基本上是用自定义控件dll来完成,内含完整sql语句,包括存储过程.
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace 客户端
{
	/// <summary>
	/// 主窗体 的摘要说明。
	/// </summary>
	public class 主窗体 : System.Windows.Forms.Form
	{
		private 读者信息dll.UserControl1 userControl11;
		public Form1 p=new Form1();
		private 读者信息dll.UserControl1 userControl12;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public 主窗体()
		{
			//
			// 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.userControl12 = new 读者信息dll.UserControl1("reader");
			this.SuspendLayout();
			// 
			// userControl12
			// 
			this.userControl12.Location = new System.Drawing.Point(8, 8);
			this.userControl12.Name = "userControl12";
			this.userControl12.Size = new System.Drawing.Size(736, 568);
			this.userControl12.TabIndex = 0;
			// 
			// 主窗体
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(736, 557);
			this.Controls.Add(this.userControl12);
			this.Name = "主窗体";
			this.Text = "主窗体";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.主窗体_Closing);
			this.Load += new System.EventHandler(this.主窗体_Load);
			this.ResumeLayout(false);

		}
		#endregion

		private void 主窗体_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			公共数据dll.Store.ds.Clear();
			this.p.Visible=true;
		}

		private void 主窗体_Load(object sender, System.EventArgs e)
		{
			MessageBox.Show(this.p.userControl11.textBox1.Text);
		}

	}
}

⌨️ 快捷键说明

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