Poängräkningen fungerar
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user