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"); } }
/// <summary> /// Crea la finestra principale, creando ShellWindow attraverso il container /// </summary> protected override DependencyObject CreateShell() { ShellWindow window = this.Container.TryResolve <ShellWindow>(); return(window); }