static public void Run(ITunesHandler handler, Form mainForm, string[] commandLine) { Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); StartupNextInstanceEventHandler startupNextInstanceEventHandler = new StartupNextInstanceEventHandler(app_StartupNextInstance); ShutdownEventHandler shutdownEventHandler = new ShutdownEventHandler(app_Shutdown); SingleInstanceApplication.Run(mainForm, commandLine, startupNextInstanceEventHandler, shutdownEventHandler); }