Exemplo n.º 1
0
        public static void Main()
        {
            AppDomain.CurrentDomain.UnhandledException += OnCurrentDomainOnUnhandledException;
            StartupConfig.Startup();

            InstanceManage.AddInstance(new UiMetadata());
            InstanceManage.AddInstance(new PlayerList());
            InstanceManage.AddInstance(new OsuDbInst());
            InstanceManage.AddInstance(new PlayersInst());
            InstanceManage.AddInstance(new LyricsInst());
            InstanceManage.AddInstance(new Updater());

            InstanceManage.GetInstance <LyricsInst>().ReloadLyricProvider();

            App app = new App();

            app.InitializeComponent();
            app.Run();
        }
Exemplo n.º 2
0
        public static void Main()
        {
#if !DEBUG
            SentrySdk.Init("https://*****:*****@sentry.io/1412154");
#endif
            AppDomain.CurrentDomain.UnhandledException += OnCurrentDomainOnUnhandledException;
            StartupConfig.Startup();

            InstanceManage.TryAddInstance(new UiMetadata());
            InstanceManage.TryAddInstance(new PlayerList());
            InstanceManage.TryAddInstance(new OsuDbInst());
            InstanceManage.TryAddInstance(new PlayersInst());
            InstanceManage.TryAddInstance(new LyricsInst());
            InstanceManage.TryAddInstance(new Updater());
            InstanceManage.TryAddInstance(new OsuFileScanner());

            InstanceManage.GetInstance <LyricsInst>().ReloadLyricProvider();

            var app = new App();
            app.InitializeComponent();
            app.Run();
        }