Пример #1
0
 private void worker_ProgressChanged(object sender, ProgressChangedEventArgs eventArgs)
 {
     NumberOfFilesFound = eventArgs.ProgressPercentage;
     if (eventArgs.UserState != null)
     {
         var foundFile = (FoundFile)eventArgs.UserState;
         FoundFiles.Add(foundFile);
     }
 }
Пример #2
0
 private void AddResult(string file)
 {
     FoundFiles.Add(new FoundFileViewModel(file));
     RaisePropertyChanged("FoundTotalText");
 }