WPF程序自动重启

解决重开新程序,但老程序不会关闭的问题。

 

System.Windows.Forms.Application.ExitThread();
System.Windows.Forms.Application.Exit();
System.Windows.Forms.Application.Restart();
Process.GetCurrentProcess().Kill();

posted @ 2022-02-08 15:26  水色天空  阅读(292)  评论(0编辑  收藏  举报