BaseDataWindow: Add fields for season

This commit is contained in:
2023-11-05 12:20:59 +01:00
parent 6435a649b4
commit 7fe2ea76c3
12 changed files with 244 additions and 57 deletions

View File

@ -24,6 +24,7 @@ namespace Elwig.Windows {
_attrs = _attrList.ToDictionary(a => a.AttrId, a => (string?)a.AttrId);
_attrIds = _attrList.ToDictionary(a => a, a => a.AttrId);
ControlUtils.RenewItemsSource(WineAttributeList, _attrList, a => (a as WineAttr)?.AttrId);
WineAttributeList_SelectionChanged(null, null);
}
private void WineAttributesFinishEditing() {
@ -65,7 +66,7 @@ namespace Elwig.Windows {
await Context.SaveChangesAsync();
}
private void WineAttributeList_SelectionChanged(object sender, SelectionChangedEventArgs evt) {
private void WineAttributeList_SelectionChanged(object? sender, SelectionChangedEventArgs? evt) {
UpdateButtons();
_attrUpdate = true;
if (WineAttributeList.SelectedItem is not WineAttr attr) {