Example #1
0
 public static void Restart()
 {
     try
     {
         string  executable = Host.GetExecutingLocation();
         Process p          = Process.Start(executable);
         if (p.Responding && !p.HasExited)
         {
             Environment.Exit(0);
         }
     }
     catch
     {
     }
 }