Ejemplo n.º 1
0
        /// <summary>
        /// Fade a form in at the defined speed.
        /// </summary>
        public static void FadeIn(Form form, float fadeSpeed)
        {
            Fader fader = new Fader(form);

            fader.FadeIn(fadeSpeed, null);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Fades a dialog in using parent form and defined fade speed
        /// and call the finished delegate.)
        /// </summary>
        public static DialogResult ShowDialog(Form form, Form parent, float fadeSpeed, FadeCompleted finished)
        {
            Fader fader = new Fader(form, parent);

            return(fader.ShowDialog(fadeSpeed, finished));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Fade a form out at the defined speed.
        /// </summary>
        public static void FadeOut(Form form, float fadeSpeed, FadeCompleted finished)
        {
            Fader fader = new Fader(form);

            fader.FadeOut(fadeSpeed, finished);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Fades a dialog in using parent form and defined fade speed.
        /// </summary>
        public static DialogResult ShowDialog(Form form, Form parent, float fadeSpeed)
        {
            Fader fader = new Fader(form, parent);

            return(fader.ShowDialog(fadeSpeed, null));
        }