예제 #1
0
		public static void Main()
		{
			try
			{
				var application = new Application { ShutdownMode = ShutdownMode.OnMainWindowClose };

				using (var applicationMutex = application.ApplicationMutex())
				{
					if (applicationMutex.IsAlreadyRunning)
					{
						return;
					}

					ExceptionlessClient.Default.Register();

					application.InstallExceptionHandler();

					////SystemInspector.Debugger.SetAsDetached();

					var debugOrInstalledPath =
						ApplicationRuntime.DebugOrRuntimePath(
							"EyeSoft",
							"NavigationDemo",
							@"Internal\Windows\Docs\Navigation\Windows\");

					CopyDebugToRuntimePath();

					application.Start(debugOrInstalledPath, "EyeSoft.Demo.Navigation.Windows.Presentation");
				}
			}
			catch (Exception exception)
			{
				MessageBox.Show(exception.ToString(), "Error on the application");
			}
		}