Esempio n. 1
0
 public void OnShutdown(IApplication application)
 {
     if (thread != null)
     {
         thread.Stop();
         thread = null;
     }
 }
Esempio n. 2
0
        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();
        }