public void OnShutdown(IApplication application) { if (thread != null) { thread.Stop(); thread = null; } }
public void StartSyncThread(bool showProgressWindow) { if (thread != null) { thread.Stop(); } thread = new SynchronizationThread(application, invokeControl); var log = new ProgressWindow(this, FilesAndFolders.GetLogPath()); log.Initialize(); VaultEagleSynchronizer.LogVersion(log, System.Reflection.Assembly.GetExecutingAssembly()); if (showProgressWindow) { log.Show(); } thread.logWindow = log; thread.Start(); }