Ejemplo 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();

            AssemblyDomain.Instance.StartMonitor();

            var domain = this.IServiceCollection.GetService <IAssemblyDomain>();

            domain.StartMonitor();
        }
Ejemplo n.º 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            ShellWindow shellWindow = new ShellWindow();

            shellWindow.Show();

            AssemblyDomain.Instance.StartMonitor();

            var domain = this.IServiceCollection.GetService <IAssemblyDomain>();

            domain.StartMonitor();

            base.OnStartup(e);
        }