方法1:
System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); //重新开启当前程序 Close();//关闭当前程序
方法2:
System.Windows.Forms.Application.Restart(); //重启当前程序
Powered by: 博客园 Copyright © 2024 eastson Powered by .NET 9.0 on Kubernetes