private void Init() { LanguageControl.LoadLanguage(); if (!CheckDotNetVersion()) { MessageBox.Show("Please install the latest version of .Net Framework \n請先安裝最新版本的 .Net Framework"); Process.Start("https://www.microsoft.com/en-us/download/details.aspx?id=48137"); App.Current.Shutdown(); return; } SettingsSaver.CheckSettings(); Environment.CurrentDirectory = System.IO.Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory); WriteBasicInfoIntoLog(); BRapi.Service.LaunchService.Launch(); AnalyzeCommandArgs(); DetectDuplicateExecute(); ExternalLinkControl.CheckRegistrySettings(); CheckNecessaryDirs(); GameDatabase.Instance.InitDatabases(); if (NormalStart) { StartupUri = new Uri(Utilities.AppUri + "MainWindow.xaml"); } else { App.Current.Shutdown(); } }
public Settings() { InitializeComponent(); DataContext = this; ExternalLinkControl.UpdateCreateShortCutOnDesktop(); }