private void OnSucceeded() { if (_notifiedSucceeded) { return; } _notifiedSucceeded = true; Unlinked?.Invoke(this); }
public void RefreshUI() { App.Current.Dispatcher.BeginInvoke(new Action(() => { this.Source.Refresh(); this.Stored.Refresh(); this.Unlinked.Refresh(); this.Assigned.Refresh(); OnPropertyChanged(nameof(DuplicateFolders)); ShowUnlinkedFolders = (Unlinked.Cast <object>().Count() > 0) ? true : false; ShowDuplicateFolders = (DuplicateFolders.Count > 0) ? true : false; HeaderNames.SetNumbers(Source.Count, Stored.Count, Unlinked.Count, DuplicateFolders.Count, FolderManager.Folders.Count); })); }