void YamsterCache_ThreadChanged(object sender, YamsterThreadChangedEventArgs e) { if (!this.IsValid) { return; } switch (e.ChangeType) { case YamsterModelChangeType.Added: case YamsterModelChangeType.PropertyChanged: UpdateViewWithThread(e.Thread); break; } }
internal void FireChangedEvent(YamsterThreadChangedEventArgs eventArgs) { if (discardChangeEvents) { return; } if (logEventsInDebugBuild) { Debug.WriteLine("YamsterCache: " + eventArgs.ToString()); } if (ThreadChanged != null) { ThreadChanged(this, eventArgs); } }