void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.SplashWelcomeScreen = ((ERPSystem.SplashWelcome)(target)); return; case 2: this.label = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
protected override void OnStartup(StartupEventArgs e) { try { SplashWelcome screen = new SplashWelcome(); screen.Show(); base.OnStartup(e); MainWindow main = new MainWindow(); System.Threading.Thread.Sleep(5000); screen.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }