/// <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); }
/// <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)); }
/// <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); }
/// <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)); }