Mercurial > pub > ImplabNet
diff Implab.Fx/AnimationHelpers.cs @ 106:d4e38929ce36 v2
promises refactoring
author | cin |
---|---|
date | Mon, 10 Nov 2014 18:00:28 +0300 |
parents | 2fad2d1f4b03 |
children |
line wrap: on
line diff
--- a/Implab.Fx/AnimationHelpers.cs Mon Nov 10 10:17:54 2014 +0300 +++ b/Implab.Fx/AnimationHelpers.cs Mon Nov 10 18:00:28 2014 +0300 @@ -42,7 +42,13 @@ { var anim = ctl.AnimateTransparency(0); - return anim.Play().DispatchToControl(ctl).Then(frm => frm.Close()); + return anim + .Play() + .DispatchToControl(ctl) + .Then(frm => { + frm.Close(); + return frm; + }); } public static IPromise<T> OverlayFadeIn<T>(this Form that, T overlay) where T : Form