winform dispose
触发 Form1_FormClosing,closed
this.Close();
////循环调用所有窗口的 close ();
Application.Exit();
// 释放 非 托管资源,但是 不能关闭窗口
this.Dispose(false);
//释放 非 托管资源, 关闭窗口 (释放托管资源)
this.Dispose(true);
//默认 为true 等价于 this.Dispose(true);
(this as IDisposable).Dispose();
浙公网安备 33010602011771号