示例#1
0
        /// 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);
        }
示例#2
0
        /// 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();
        }