BaseDataWindow: Add fields for season
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user