Esempio n. 1
0
        void playingAnimations_CollectionChanged(object sender, TrackingCollectionChangedEventArgs e)
        {
            var item = (PlayingAnimation)e.Item;

            switch (e.Action)
            {
            case NotifyCollectionChangedAction.Add:
            {
                item.attached = true;
                break;
            }

            case NotifyCollectionChangedAction.Remove:
            {
                var evaluator = item.Evaluator;
                if (evaluator != null)
                {
                    Blender.ReleaseEvaluator(evaluator);
                    item.Evaluator = null;
                }

                item.endedTCS?.TrySetResult(true);
                item.endedTCS = null;
                item.attached = false;
                break;
            }
            }
        }
Esempio n. 2
0
 void playingAnimations_CollectionChanged(object sender, TrackingCollectionChangedEventArgs e)
 {
     if (e.Action == NotifyCollectionChangedAction.Remove)
     {
         var item      = (PlayingAnimation)e.Item;
         var evaluator = item.Evaluator;
         if (evaluator != null)
         {
             Blender.ReleaseEvaluator(evaluator);
             item.Evaluator = null;
         }
     }
 }
Esempio n. 3
0
        private void PlayingAnimations_CollectionChanged(object sender, TrackingCollectionChangedEventArgs e)
        {
            var item = (PlayingAnimation)e.Item;

            switch (e.Action)
            {
            case NotifyCollectionChangedAction.Remove:
            {
                var evaluator = item.Evaluator;
                if (evaluator != null)
                {
                    Blender.ReleaseEvaluator(evaluator);
                    item.Evaluator = null;
                }

                item.EndedTCS?.TrySetResult(true);
                item.EndedTCS = null;
                break;
            }

            default:
                break;
            }
        }