示例#1
0
        public App()
        {
            string exeDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            Directory.SetCurrentDirectory(exeDir);
            AssemblyResolver.Init();
            LicenseKeyLocator.FindandRegisterLicenseKey();
            this.DispatcherUnhandledException += App_DispatcherUnhandledException1;
        }
示例#2
0
        public App()
        {
#if STORE
            string exeDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            Directory.SetCurrentDirectory(exeDir);
#else
            AssemblyResolver.Init();
            LicenseKeyLocator.FindandRegisterLicenseKey();
            this.DispatcherUnhandledException += new System.Windows.Threading.DispatcherUnhandledExceptionEventHandler(App_DispatcherUnhandledException);
#endif
        }
示例#3
0
 public App()
 {
     AssemblyResolver.Init();
     LicenseKeyLocator.FindandRegisterLicenseKey();
     this.DispatcherUnhandledException += App_DispatcherUnhandledException1;
 }