protected override void CheckRepeat() { if (Done) { DoneEvent?.Invoke(this, End); } base.CheckRepeat(); }
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--; }); } }
public override void GotoEnd() { DoneEvent?.Invoke(this, End); base.GotoEnd(); }
public void RaiseDoneEvent() { DoneEvent?.Invoke(this, EventArgs.Empty); }
internal bool OnDone(T value) { DoneEvent?.Invoke(value); OnAlways(); return(DoneEvent != null); }