Winfrom
System.Windows.Forms.Application.Restart();
WPF
System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
Application.Current.Shutdown();
Environment.Exit(0);
Winfrom
System.Windows.Forms.Application.Restart();
WPF
System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
Application.Current.Shutdown();
Environment.Exit(0);