private async void Application_Startup(object sender, StartupEventArgs e) { AppDomain.CurrentDomain.UnhandledException += OnCurrentDomainOnUnhandledException; DispatcherUnhandledException += Application_DispatcherUnhandledException; await EntryStartup.StartupAsync(); var controller = new ObservablePlayController(); controller.PlayList.Mode = AppSettings.Default.Play.PlayListMode; Service.TryAddInstance(controller); Service.TryAddInstance(new OsuDbInst()); Service.TryAddInstance(new LyricsInst()); Service.TryAddInstance(new UpdateInst()); Service.TryAddInstance(new OsuFileScanner()); Service.Get <LyricsInst>().ReloadLyricProvider(); Execute.SetMainThreadContext(); I18NUtil.LoadI18N(); }
private void Application_Startup(object sender, StartupEventArgs e) { Execute.SetMainThreadContext(); I18NUtil.LoadI18N(); }