示例#1
0
        void YamsterCache_ThreadChanged(object sender, YamsterThreadChangedEventArgs e)
        {
            if (!this.IsValid)
            {
                return;
            }

            switch (e.ChangeType)
            {
            case YamsterModelChangeType.Added:
            case YamsterModelChangeType.PropertyChanged:
                UpdateViewWithThread(e.Thread);
                break;
            }
        }
示例#2
0
        internal void FireChangedEvent(YamsterThreadChangedEventArgs eventArgs)
        {
            if (discardChangeEvents)
            {
                return;
            }
            if (logEventsInDebugBuild)
            {
                Debug.WriteLine("YamsterCache: " + eventArgs.ToString());
            }

            if (ThreadChanged != null)
            {
                ThreadChanged(this, eventArgs);
            }
        }