示例#1
0
 protected override void CheckRepeat()
 {
     if (Done)
     {
         DoneEvent?.Invoke(this, End);
     }
     base.CheckRepeat();
 }
示例#2
0
        private void FireShowOverlayAnimations()
        {
            foreach (var it in _overlayAnimations)
            {
                _activeOverlayAnimationCount++;
                it.Close(() =>
                {
                    _activeOverlayAnimationCount--;
                    if (_activeOverlayAnimationCount == 0)
                    {
                        Done?.Invoke();
                    }
                });
            }

            foreach (var it in _heroAnimations)
            {
                _activeHeroAnimationCount++;
                it.Close(() =>
                {
                    _activeHeroAnimationCount--;
                });
            }
        }
示例#3
0
 public override void GotoEnd()
 {
     DoneEvent?.Invoke(this, End);
     base.GotoEnd();
 }
示例#4
0
 public void RaiseDoneEvent()
 {
     DoneEvent?.Invoke(this, EventArgs.Empty);
 }
示例#5
0
 internal bool OnDone(T value)
 {
     DoneEvent?.Invoke(value);
     OnAlways();
     return(DoneEvent != null);
 }