WPF程序自重启(注销重启)
System.Windows.Forms.Application.ExitThread();
System.Windows.Forms.Application.Exit();
System.Windows.Forms.Application.Restart();
Process.GetCurrentProcess().Kill();
System.Windows.Forms.Application.ExitThread();
System.Windows.Forms.Application.Exit();
System.Windows.Forms.Application.Restart();
Process.GetCurrentProcess().Kill();