/// <summary> /// Attempts to update the organized code items collection based on the specified snapshot. /// </summary> /// <param name="snapshot">The code items snapshot.</param> private void UpdateOrganizedCodeItems(SnapshotCodeItems snapshot) { if (Document == snapshot.Document) { OrganizedCodeItems = snapshot.CodeItems; } }
/// <summary> /// Attempts to update the organized code items collection based on the specified snapshot. /// </summary> /// <param name="snapshot">The code items snapshot.</param> private void UpdateOrganizedCodeItems(SnapshotCodeItems snapshot) { if (Document == snapshot.Document) { Dispatcher.BeginInvoke(DispatcherPriority.Input, new Action(() => OrganizedCodeItems = snapshot.CodeItems)); } }