Eresor

Untitled

May 27th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1.             IDisposable hideDisposable = null;
  2.             hideDisposable = Observable.FromEvent(h => window.HideAnimation.AnimationEnded += h,
  3.                     h => window.HideAnimation.AnimationEnded -= h)
  4.                 .Subscribe(_ =>
  5.                 {
  6.                     HideEnded?.Invoke(window);
  7.                     hideDisposable?.Dispose();
  8.                 });
Advertisement
Add Comment
Please, Sign In to add comment