示例#1
0
 private void RunInReleaseMode()
 {
     this.DispatcherUnhandledException          += new System.Windows.Threading.DispatcherUnhandledExceptionEventHandler(App_DispatcherUnhandledException);
     AppDomain.CurrentDomain.UnhandledException += AppDomainUnhandledException;
     try
     {
         PtBootstrapper bootstrapper = new PtBootstrapper();
         bootstrapper.Run();
     }
     catch (Exception ex)
     {
         HandleException(ex);
     }
 }
示例#2
0
        private void RunInDebugMode()
        {
            PtBootstrapper bootstrapper = new PtBootstrapper();

            bootstrapper.Run();
        }