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