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; }