Пример #1
0
 private void DlgSync_Loaded(object sender, RoutedEventArgs e)
 {
     try
     {
         PNLang.Instance.ApplyControlLanguage(this);
         Title += @" [" + PNLang.Instance.GetCaptionText("sync_local", "Local") + @"]";
         System.Windows.Forms.Application.DoEvents();
         var sync = new PNSync();
         sync.SyncComplete += sync_SyncComplete;
         var t = new Thread(sync.SyncLocal);
         t.Start(_Folders);
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Пример #2
0
 private void DlgSync_Loaded(object sender, RoutedEventArgs e)
 {
     try
     {
         PNLang.Instance.ApplyControlLanguage(this);
         Title += @" [" + PNLang.Instance.GetCaptionText("sync_local", "Local") + @"]";
         System.Windows.Forms.Application.DoEvents();
         var sync = new PNSync();
         sync.SyncComplete += sync_SyncComplete;
         var t = new Thread(sync.SyncLocal);
         t.Start(_Folders);
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }