public static void Main(string[] args)
 {
     SingleInstance.SingleInstanceApplicationWrapper wrapper = new SingleInstanceApplicationWrapper();
     wrapper.MinimumSplashScreenDisplayTime = 0;
     wrapper.Run(args);
     if (wrapper.RestartOnExit)
     {
         Process.Start(Assembly.GetExecutingAssembly().Location, "restart");
     }
 }
 public WpfApp(SingleInstanceApplicationWrapper parent)
 {
     this.parent = parent;
 }