using System; using System.Windows.Forms; using System.Threading.Tasks; namespace CramLinkClientGUI { public class SplashContext : ApplicationContext { private SplashForm splash; private MainForm main; public SplashContext() { splash = new SplashForm(); splash.Shown += async (s, e) => { await Task.Delay(2500); splash.Hide(); main = new MainForm(); main.FormClosed += (s2, e2) => ExitThread(); main.Show(); }; splash.Show(); } } }