void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((TestPostgreInWpf.Loading_window)(target)); return; } this._contentLoaded = true; }
protected override void OnStartup(StartupEventArgs e) { Loading_window splash = new Loading_window(); splash.Show(); Stopwatch timer = new Stopwatch(); timer.Start(); base.OnStartup(e); MainWindow main = new MainWindow(); timer.Stop(); splash.Close(); main.Activate(); }