예제 #1
0
 public WelcomeViewModel(IRegionManager regionManager, IEventAggregator eventAggregator, VersionCheckerResponce installTraveler)
 {
     this._regionManager   = regionManager;
     this._eventAggregator = eventAggregator;
     this._installTraveler = installTraveler;
     this.NextCommand      = new PrismCommands.DelegateCommand(this.GoFoward, () => this._canContinue);
     this.CancelCommand    = new PrismCommands.DelegateCommand(this.Cancel);
     this.BuilderMessage();
 }
예제 #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            GridControl.AllowInfiniteGridSize = true;
            this.installTraveler = VersionChecker.CheckInstalledVersion();

            //Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;

            //if () {
            //    Current.ShutdownMode = ShutdownMode.OnMainWindowClose;
            //} else {
            //    Current.ShutdownMode = ShutdownMode.OnMainWindowClose;
            //    this.Shutdown();
            //}
            base.OnStartup(e);
        }