private void worker_ProgressChanged(object sender, ProgressChangedEventArgs eventArgs) { NumberOfFilesFound = eventArgs.ProgressPercentage; if (eventArgs.UserState != null) { var foundFile = (FoundFile)eventArgs.UserState; FoundFiles.Add(foundFile); } }
private void AddResult(string file) { FoundFiles.Add(new FoundFileViewModel(file)); RaisePropertyChanged("FoundTotalText"); }