コード例 #1
0
        public override void BuildComponents(IComponentBuilder builder)
        {
            // Db context
            builder.ConfigureDbContext <BeatmapDownloaderDatabaseContext>();

            // configurations
            builder.UsePluginOptionsModel <MultiPlayerDownloaderUI, BeatmapDownloaderConfiguration>();

            // view models for UI
            builder.ConfigureComponent <DownloadProvidersViewModel>().SingleInstance();
            builder.ConfigureComponent <DownloadHistoryViewModel>().SingleInstance();

            // configuration UI
            builder.ConfigureUIModel <MultiPlayerDownloaderUI, BeatmapDownloaderConfiguration>();

            // UI
            builder.ConfigureUIComponent <MultiplayerDownloaderTab>();
        }