[#37] Controls: Implement IntegerUpDown
All checks were successful
Test / Run tests (push) Successful in 2m28s
All checks were successful
Test / Run tests (push) Successful in 2m28s
This commit is contained in:
@ -14,6 +14,7 @@ using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Elwig.Windows {
|
||||
@ -147,7 +148,7 @@ namespace Elwig.Windows {
|
||||
}
|
||||
|
||||
protected override Task OnRenewContext(AppDbContext ctx) {
|
||||
SeasonInput_ValueChanged(null, null);
|
||||
SeasonInput_TextChanged(null, null);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
@ -159,7 +160,7 @@ namespace Elwig.Windows {
|
||||
Height = 390;
|
||||
}
|
||||
|
||||
private async void SeasonInput_ValueChanged(object? sender, RoutedEventArgs? evt) {
|
||||
private async void SeasonInput_TextChanged(object? sender, TextChangedEventArgs? evt) {
|
||||
using var ctx = new AppDbContext();
|
||||
var s0 = await ctx.Seasons.FindAsync(SeasonInput.Value);
|
||||
var valid = (s0 != null);
|
||||
|
Reference in New Issue
Block a user