コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: gmanjersey/Osu-Player
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     Execute.SetMainThreadContext();
     I18NUtil.LoadI18N();
 }