From ae05adc82385417230acb9320120de8c016a6cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Sun, 12 Oct 2025 09:41:14 +0200 Subject: [PATCH] =?UTF-8?q?Po=C3=A4ngr=C3=A4kningen=20fungerar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModelClasses/RoundRunningViewModel.cs | 4 ++++ GreadyPoang/Views/RoundRunningView.xaml.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/GreadyPoang.ViewModelLayer/ViewModelClasses/RoundRunningViewModel.cs b/GreadyPoang.ViewModelLayer/ViewModelClasses/RoundRunningViewModel.cs index d846c6f..35809e5 100644 --- a/GreadyPoang.ViewModelLayer/ViewModelClasses/RoundRunningViewModel.cs +++ b/GreadyPoang.ViewModelLayer/ViewModelClasses/RoundRunningViewModel.cs @@ -113,6 +113,10 @@ public class RoundRunningViewModel : ViewModelBase var localElements = _combined.roundBuilderElementsTotalById(_objectMessage.CurrentGroup.GameRoundId); FillupResultTable(localElements); + foreach (var col in _playerColumns) + { + RoundElements.FirstOrDefault(e => e.ParticipantId == col.PlayerId).GameRegPoints = col.PlayerPoints; + } TriggerRebuild(); } return RoundElements; diff --git a/GreadyPoang/Views/RoundRunningView.xaml.cs b/GreadyPoang/Views/RoundRunningView.xaml.cs index 092d5aa..e2d8035 100644 --- a/GreadyPoang/Views/RoundRunningView.xaml.cs +++ b/GreadyPoang/Views/RoundRunningView.xaml.cs @@ -9,6 +9,7 @@ public partial class RoundRunningView : ContentPage { InitializeComponent(); ViewModel = viewModel; + ViewModel.RebuildRequested += ViewModel_RebuildRequested; } protected override void OnAppearing() @@ -17,7 +18,6 @@ public partial class RoundRunningView : ContentPage BindingContext = ViewModel; ViewModel.Get(); //BuildScoreGrid(ViewModel.PlayerColumns); // <-- här bygger du layouten - ViewModel.RebuildRequested += ViewModel_RebuildRequested; }