Exemplo n.º 1
0
 private bool StartTask(SyncList sl, SyncTask type, object argument, int shownList)
 {
     if (!itemWorker.IsBusy)
     {
         this.workingList = sl;
         SyncingList      = shownList;
         sl.SetObservable(false);
         taskType           = type;
         syncBar.Visibility = syncCancel.Visibility = System.Windows.Visibility.Visible;
         itemWorker.RunWorkerAsync(argument);
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 internal void CancelTask()
 {
     itemWorker.CancelAsync();
     workingList.SetObservable(true);
 }