comparison Implab.Fx/AnimationHelpers.cs @ 192:f1da3afc3521 release v2.1

Слияние с v2
author cin
date Fri, 22 Apr 2016 13:10:34 +0300
parents d4e38929ce36
children
comparison
equal deleted inserted replaced
71:1714fd8678ef 192:f1da3afc3521
40 40
41 public static IPromise<T> CloseFadeOut<T>(this T ctl) where T : Form 41 public static IPromise<T> CloseFadeOut<T>(this T ctl) where T : Form
42 { 42 {
43 var anim = ctl.AnimateTransparency(0); 43 var anim = ctl.AnimateTransparency(0);
44 44
45 return anim.Play().DispatchToControl(ctl).Then(frm => frm.Close()); 45 return anim
46 .Play()
47 .DispatchToControl(ctl)
48 .Then(frm => {
49 frm.Close();
50 return frm;
51 });
46 } 52 }
47 53
48 public static IPromise<T> OverlayFadeIn<T>(this Form that, T overlay) where T : Form 54 public static IPromise<T> OverlayFadeIn<T>(this Form that, T overlay) where T : Form
49 { 55 {
50 if (that == null) 56 if (that == null)