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

@ -23,6 +23,7 @@ namespace Elwig.Windows {
_branches = _branchList.ToDictionary(b => b.ZwstId, b => (string?)b.ZwstId);
_branchIds = _branchList.ToDictionary(b => b, b => b.ZwstId);
ControlUtils.RenewItemsSource(BranchList, _branchList, b => (b as Branch)?.ZwstId);
BranchList_SelectionChanged(null, null);
}
private void BranchesFinishEditing() {
@ -63,7 +64,7 @@ namespace Elwig.Windows {
await Context.SaveChangesAsync();
}
private void BranchList_SelectionChanged(object sender, SelectionChangedEventArgs evt) {
private void BranchList_SelectionChanged(object? sender, SelectionChangedEventArgs? evt) {
UpdateButtons();
_branchUpdate = true;
if (BranchList.SelectedItem is not Branch branch) {