Lousy.Mon.EventToken.AnimationEventHandler C# (CSharp) Method

AnimationEventHandler() protected method

protected AnimationEventHandler ( object sender, object e ) : void
sender object
e object
return void
        protected void AnimationEventHandler(object sender, object e)
        {
            // Deregister for callbacks
            _Animation.Completed -= AnimationEventHandler;

            // Run the animations of every child
            foreach (IAnimator child in _Children.Keys)
            {
                TimeSpan? timespan = _Children[child];

                if (timespan == null)
                {
                    child.Now();
                }
                else
                {
                    child.After(timespan.Value.Seconds, OrSo.Secs);
                }
            }
        }