示例#1
0
		public App()
		{
			if (SystemInspector.Debugger.IsAttached)
			{
				DialogService.ShowMessage("Debugger attached", "To test this application launch without debugging.");
				Shutdown();
				return;
			}

			var mainViewModel = new MainViewModel();

			Logger.Register(new ViewLogger(mainViewModel));

			this.InstallExceptionHandler();

			DialogService.ShowMain(mainViewModel);
		}
示例#2
0
		public ViewLogger(MainViewModel mainViewModel)
		{
			this.mainViewModel = mainViewModel;
		}