Poängräkningen fungerar
This commit is contained in:
@ -113,6 +113,10 @@ public class RoundRunningViewModel : ViewModelBase
|
|||||||
var localElements = _combined.roundBuilderElementsTotalById(_objectMessage.CurrentGroup.GameRoundId);
|
var localElements = _combined.roundBuilderElementsTotalById(_objectMessage.CurrentGroup.GameRoundId);
|
||||||
|
|
||||||
FillupResultTable(localElements);
|
FillupResultTable(localElements);
|
||||||
|
foreach (var col in _playerColumns)
|
||||||
|
{
|
||||||
|
RoundElements.FirstOrDefault(e => e.ParticipantId == col.PlayerId).GameRegPoints = col.PlayerPoints;
|
||||||
|
}
|
||||||
TriggerRebuild();
|
TriggerRebuild();
|
||||||
}
|
}
|
||||||
return RoundElements;
|
return RoundElements;
|
||||||
|
|||||||
@ -9,6 +9,7 @@ public partial class RoundRunningView : ContentPage
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
ViewModel = viewModel;
|
ViewModel = viewModel;
|
||||||
|
ViewModel.RebuildRequested += ViewModel_RebuildRequested;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnAppearing()
|
protected override void OnAppearing()
|
||||||
@ -17,7 +18,6 @@ public partial class RoundRunningView : ContentPage
|
|||||||
BindingContext = ViewModel;
|
BindingContext = ViewModel;
|
||||||
ViewModel.Get();
|
ViewModel.Get();
|
||||||
//BuildScoreGrid(ViewModel.PlayerColumns); // <-- h<>r bygger du layouten
|
//BuildScoreGrid(ViewModel.PlayerColumns); // <-- h<>r bygger du layouten
|
||||||
ViewModel.RebuildRequested += ViewModel_RebuildRequested;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user