Beispiel #1
0
        public override void Run(bool runWithDefaultConfiguration)
        {
            base.Run(runWithDefaultConfiguration);

            //Nascondo il messaggio di caricamento
            ShellWindow shell = (ShellWindow)this.Shell;

            shell.LoadCompleted();

            //Time bomb
            bool expired = false;// TimeBomb();

            if (expired)
            {
                throw new Exception("tm");
            }
        }
Beispiel #2
0
        /// <summary>
        /// Crea la finestra principale, creando ShellWindow attraverso il container
        /// </summary>
        protected override DependencyObject CreateShell()
        {
            ShellWindow window = this.Container.TryResolve <ShellWindow>();

            return(window);
        }