/// Fade the form out public static void FadeOut(this Form form, Action fadedOut) { Contract.Requires(form != null); var fader = new Fader(form); fader.FadeOut(fadedOut); }
/// Fade the form in public static void FadeIn(this Form form, int seconds) { Contract.Requires(form != null); Contract.Requires(seconds > 0); var fader = new Fader(form, seconds); fader.FadeIn(); }