Esempio n. 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            ResourceDictionary lanRes = LanguageSetting.LoadLanguageResource();

            Application.Current.Resources.MergedDictionaries.Add(lanRes);
            ResourceDictionary localizedCommonRes = LanguageSetting.LoadLocalizedCommonDictionary();

            Application.Current.Resources.MergedDictionaries.Add(localizedCommonRes);

            FolderDefine.Instance.Init(string.Empty, string.Empty);
            DataManager.Instance.Init();

            Bootstrapper bootstrapper = new Bootstrapper();

            bootstrapper.Run();

            this.ShutdownMode = ShutdownMode.OnMainWindowClose;
        }