示例#1
0
        public App()
        {
            AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
            {
                LogUnhandledException(e.ExceptionObject);
            };

            NatHelper.BeginDiscover((ar) => NatHelper.EndDiscover(ar));
        }
示例#2
0
        public App()
        {
            this.Startup += new StartupEventHandler(App_Startup);
            this.Exit    += new ExitEventHandler(App_Exit);
            AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
            {
                LogUnhandledException(e.ExceptionObject);
            };

            NatHelper.BeginDiscover((ar) => NatHelper.EndDiscover(ar));
        }