Example #1
0
        static public void Relaunch(string[] args, ApplicationShutdownDelegate appShutdownDelegate)
        {
            Assembly assembly = Assembly.GetEntryAssembly();

            GenerateAndRunLauncherAssembly(assembly, args);

            // Attempt to shut down the application
            if (appShutdownDelegate != null)
            {
                appShutdownDelegate();
            }
        }
        static public void Relaunch(string[] args, ApplicationShutdownDelegate appShutdownDelegate)
        {
            Assembly assembly = Assembly.GetEntryAssembly();
            GenerateAndRunLauncherAssembly(assembly, args);

            // Attempt to shut down the application
            if (appShutdownDelegate != null)
            {
                appShutdownDelegate();
            }
        }
Example #3
0
 /// <summary>
 /// Relaunches the current application with the arguments
 /// passed, using the provided ApplicationShutDownDelegate
 /// to shut down the current application.
 /// </summary>
 static public void Relaunch(ApplicationShutdownDelegate appShutdownDelegate)
 {
     Relaunch(_Arguments, appShutdownDelegate);
 }
 /// <summary>
 /// Relaunches the current application with the arguments
 /// passed, using the provided ApplicationShutDownDelegate
 /// to shut down the current application.
 /// </summary>
 static public void Relaunch(ApplicationShutdownDelegate appShutdownDelegate)
 {
     Relaunch(_Arguments, appShutdownDelegate);
 }