CS模式,客户端页面加载
public MainForm() { //1、初始化视图 InitializeComponent(); //2、加载程序 this.Load += new System.EventHandler(this.MainForm_Load); //4、窗体关闭之前 this.FormClosing += (s, r) => { }; //5、窗体关闭 this.Closed += (s, r) => { this.Close(); }; } private void MainForm_Load(object sender, EventArgs e) { }
"唯有高屋建瓴,方可水到渠成"