📄 主窗体.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 + -