Exemplo n.º 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            ShellWindow shellWindow = new ShellWindow();

            StartWindow startWindow = new StartWindow();

            Task.Run(() =>
            {
                Thread.Sleep(5000);

                this.Dispatcher.Invoke(() =>
                {
                    startWindow.Close();
                });
            });

            startWindow.ShowDialog();

            shellWindow.Show();
        }