Exemplo n.º 1
0
        public App()
        {
            AppDomain.CurrentDomain.UnhandledException += (s, e) =>
            {
                X1LogHelper.HandlerGlobalException(e.ExceptionObject as Exception, s);
            };

            PlatformContext.Init("Desktop");
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes the singleton application object.  This is the first line of authored code
 /// executed, and as such is the logical equivalent of main() or WinMain().
 /// </summary>
 public App()
 {
     UnhandledException += (s, e) =>
     {
         if (X1LogHelper.HandlerGlobalException(e.Exception, s))
         {
             e.Handled = true;
         }
     };
     this.InitializeComponent();
     this.Suspending += OnSuspending;
     Windows.System.MemoryManager.AppMemoryUsageLimitChanging += MemoryManager_AppMemoryUsageLimitChanging;
 }