Show episode count for each season
This commit is contained in:
@@ -29,7 +29,7 @@ namespace EstusShots.Gtk
|
||||
new DataColumnText(nameof(Enemy.Seasons))
|
||||
{
|
||||
Title = "Game",
|
||||
DisplayConverter = seasons => string.Join(", ", ((IEnumerable<Season>) seasons).Select(x => x.Game))
|
||||
DisplayConverter = seasons => ((IEnumerable<Season>) seasons)?.Select(x => x.Game).StringJoin(", ")
|
||||
}
|
||||
};
|
||||
_enemiesControl = new BindableListControl<Enemy>(columns, nameof(Enemy.EnemyId), _enemiesTreeView);
|
||||
|
||||
@@ -116,7 +116,8 @@ namespace EstusShots.Gtk
|
||||
new DataColumnText(nameof(Season.End))
|
||||
{
|
||||
DisplayConverter = date => (date as DateTime?)?.ToString("dd.MM.yyyy") ?? "Ongoing"
|
||||
}
|
||||
},
|
||||
new DataColumnText(nameof(Season.EpisodeCount)) {Title = "Episode Count"}
|
||||
};
|
||||
SeasonsControl = new BindableListControl<Season>(columns, nameof(Season.SeasonId), SeasonsView);
|
||||
SeasonsControl.SelectionChanged += SeasonsControlSelectionChanged;
|
||||
|
||||
Reference in New Issue
Block a user