private void StartBackUp(string userSettings) { LoadBackingUpMenu(); backUpThread = new Thread(() => { LoggingUtilities.SetAppDataRoot(AppDataRoot); try { LoadingIcon(); LoggingUtilities.LogFormat("\nInitiating Simple Back-Up ({0})\n", DateTime.Now.ToString()); BackUpSettings loadedSettings = settings.Load(userSettings); backUp = new BackUp(); backUp.Start(loadedSettings); } catch (Exception ex) { LoggingUtilities.Log("ERROR\n"); LoggingUtilities.Log(ex.StackTrace + "\n"); LoggingUtilities.Log(ex.Message + "\n"); LoggingUtilities.Log(ex.Data.ToString() + "\n"); Console.Beep(200, 500); Console.Beep(200, 500); Console.Beep(200, 500); } finally { if (loadIconThread != null) { loadIconThread.Abort(); loadIconThread = null; trayIcon.Icon = Resources.AppIcon; } Reloadmenu(); Console.Beep(400, 500); LoggingUtilities.LogFormat("Finished AFB ({0})\n", DateTime.Now.ToString()); } }); backUpThread.Start(); }