新的优化

This commit is contained in:
tanglong 2026-03-13 17:03:13 +08:00
parent bd2b141bdf
commit e29c119738
2 changed files with 7 additions and 4 deletions

View File

@ -76,7 +76,7 @@
Margin="0,168" Margin="0,168"
/> />
<Grid Width="1346" Height="520" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,331,0,0" x:Name="ScoreGrid"> <Grid Width="1346" Height="560" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,331,0,0" x:Name="ScoreGrid">
<Border Background="#FEDE50" CornerRadius="0,0,20,20"/> <Border Background="#FEDE50" CornerRadius="0,0,20,20"/>
<Grid HorizontalAlignment="Center" VerticalAlignment="Top" Width="1344" Height="71"> <Grid HorizontalAlignment="Center" VerticalAlignment="Top" Width="1344" Height="71">
<Border Background="#f7f7f7"/> <Border Background="#f7f7f7"/>

View File

@ -85,9 +85,11 @@ namespace Wpf_AiSportsMicrospace.Views
using var scope = App.AppHost.Services.CreateScope(); using var scope = App.AppHost.Services.CreateScope();
var db = scope.ServiceProvider.GetRequiredService<AppDbContext>(); var db = scope.ServiceProvider.GetRequiredService<AppDbContext>();
var points = new[] { cfg.Point1, cfg.Point2, cfg.Point3, // 获取配置
cfg.Point4, cfg.Point5, cfg.Point6, var pointCount = await db.BasicConfig
cfg.Point7, cfg.Point8, cfg.Point9, cfg.Point10 }; .Where(x => x.Code == AppSettings.Code)
.Select(x => x.HomeWidth)
.FirstOrDefaultAsync();
var cfg = await db.GroupPoints.FirstOrDefaultAsync(x => x.Code == AppSettings.Code); var cfg = await db.GroupPoints.FirstOrDefaultAsync(x => x.Code == AppSettings.Code);
@ -238,6 +240,7 @@ namespace Wpf_AiSportsMicrospace.Views
private async void StartCountdown(int start = 3) private async void StartCountdown(int start = 3)
{ {
tipImage.Visibility = Visibility.Collapsed;
_mainWin.ShowCountDownAnimation(); _mainWin.ShowCountDownAnimation();
//_currentCountdown = start; //_currentCountdown = start;