/// <summary>Raises the <see cref="E:System.Windows.Annotations.Storage.AnnotationStore.StoreContentChanged" /> event.</summary> /// <param name="e">The event data.</param> // Token: 0x06006360 RID: 25440 RVA: 0x001BF288 File Offset: 0x001BD488 protected virtual void OnStoreContentChanged(StoreContentChangedEventArgs e) { StoreContentChangedEventHandler storeContentChangedEventHandler = null; object syncRoot = this.SyncRoot; lock (syncRoot) { storeContentChangedEventHandler = this.StoreContentChanged; } if (this.AutoFlush) { this.Flush(); } if (storeContentChangedEventHandler != null) { storeContentChangedEventHandler(this, e); } }
/// <summary> /// Should be called after every operation in order to trigger /// events and to perform an automatic flush if AutoFlush is true. /// </summary> /// <param name="e">arguments for the event to fire</param> protected virtual void OnStoreContentChanged(StoreContentChangedEventArgs e) { StoreContentChangedEventHandler storeContentChanged = null; lock (SyncRoot) { storeContentChanged = StoreContentChanged; } if (AutoFlush) { Flush(); } if (storeContentChanged != null) { storeContentChanged(this, e); } }