Пример #1
0
        private LocalTabViewCtrl CreateTabViewLocal(ColumnConfig[] colConfig)
        {
            LocalTabViewCtrl tabViewLocal = new LocalTabViewCtrl(TabKeys.LocalKey, StaticTagData.GetFavoriteName(TabKeys.LocalKey), DataSourceAdapter, DefaultGameFileSelectFields, DataCache.Instance.TagMapLookup, GameFileViewFactory);

            SetupTabBase(tabViewLocal, GameFileViewFactory.DefaultColumnTextFields, colConfig, mnuLocal, true);
            return(tabViewLocal);
        }
Пример #2
0
        private IWadTabViewCtrl CreateTabViewIwad(ColumnConfig[] colConfig)
        {
            ColumnField[] columnTextFields = new ColumnField[]
            {
                new ColumnField("FileNameNoPath", "File"),
                new ColumnField("Title", "Title"),
                new ColumnField("LastPlayed", "Last Played")
            };

            IWadTabViewCtrl tabViewIwads = new IWadTabViewCtrl(TabKeys.IWadsKey, StaticTagData.GetFavoriteName(TabKeys.IWadsKey), DataSourceAdapter, DefaultGameFileSelectFields, DataCache.Instance.TagMapLookup, GameFileViewFactory);

            SetupTabBase(tabViewIwads, columnTextFields, colConfig, mnuLocal, true);
            return(tabViewIwads);
        }
Пример #3
0
        private OptionsTabViewCtrl CreateTabViewRecent(ColumnConfig[] colConfig)
        {
            OptionsTabViewCtrl tabViewRecent = new OptionsTabViewCtrl(TabKeys.RecentKey, StaticTagData.GetFavoriteName(TabKeys.RecentKey), DataSourceAdapter, DefaultGameFileSelectFields, DataCache.Instance.TagMapLookup, GameFileViewFactory);

            SetupTabBase(tabViewRecent, GameFileViewFactory.DefaultColumnTextFields, colConfig, mnuLocal, true);
            tabViewRecent.Options            = new GameFileGetOptions();
            tabViewRecent.Options.Limit      = 10;
            tabViewRecent.Options.OrderBy    = OrderType.Desc;
            tabViewRecent.Options.OrderField = GameFileFieldType.Downloaded;
            return(tabViewRecent);
        }
Пример #4
0
        private IdGamesTabViewCtrl CreateTabViewIdGames(ColumnConfig[] colConfig)
        {
            ColumnField[] columnTextFields = new ColumnField[]
            {
                new ColumnField("Title", "Title"),
                new ColumnField("Author", "Author"),
                new ColumnField("ReleaseDate", "Release Date"),
                new ColumnField("Description", "Description"),
                new ColumnField("Rating", "Rating"),
            };

            IdGamesDataSourceAdapter = new IdGamesDataAdapater(AppConfiguration.IdGamesUrl, AppConfiguration.ApiPage, AppConfiguration.MirrorUrl);
            var factory = new GameFileViewFactory(this, GameFileViewType.GridView);
            IdGamesTabViewCtrl tabViewIdGames = new IdGamesTabViewCtrl(TabKeys.IdGamesKey, StaticTagData.GetFavoriteName(TabKeys.IdGamesKey), IdGamesDataSourceAdapter, DefaultGameFileSelectFields, factory);

            SetupTabBase(tabViewIdGames, columnTextFields, colConfig, mnuIdGames, false);
            return(tabViewIdGames);
        }