public fmMain(fmSplash screenform) { InitializeComponent(); AnT.InitializeContexts(); // ініціалізація элемента SimpleOpenGLControl screenform.Hide(); screenform.Dispose(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); fmSplash SplashScreen = new fmSplash(); SplashScreen.Show(); while (SplashScreen.tmSplash.Enabled) { Application.DoEvents(); } Application.Run(new fmMain(SplashScreen)); }