Ejemplo n.º 1
0
        public void OnNotification(IEventPublisher publisher, EventArgs eventArgs)
        {
            if (publisher.GetType() != typeof(PropertyAnimation))
            {
                throw new NotImplementedException();
            }

            if (eventArgs.GetType() != typeof(PropertyAnimation.AnimationEnded))
            {
                throw new NotImplementedException();
            }

            lock (toDelete)
            {
                toDelete.Add(((PropertyAnimation)publisher).Name);
            }
        }