使用 this.close(); 方法关闭当前窗口。(若当前窗口是进程的主窗口则将退出整个应用程序)
使用 Application.Exit(); 方法退出整个应用程序。