Stor ombearbetning som skall ge splash möjligheter

This commit is contained in:
2025-10-01 08:38:42 +02:00
parent f2403d5cf3
commit f1077febc4
38 changed files with 548 additions and 98 deletions

View File

@ -4,6 +4,7 @@ using GreadyPoang.EntityLayer;
using GreadyPoang.Services;
using System.Collections.ObjectModel;
using System.Diagnostics;
using GreadyPoang.Core;
namespace GreadyPoang.ViewModelLayer;
@ -22,7 +23,8 @@ public class RoundRunningViewModel : ViewModelBase
IRepository<GamePoint> pointsRepo,
IMethodSharingService<Participant> sharingService,
ICombinedRepository combined,
IObjectMessageService objectMessage
IObjectMessageService objectMessage,
IOverlayService overlay
) : base()
{
_roundsRepo = roundsRepo;
@ -30,6 +32,7 @@ public class RoundRunningViewModel : ViewModelBase
_sharingService = sharingService;
_combined = combined;
_objectMessage = objectMessage;
_overlay = overlay;
_roundElements = new ObservableCollection<RoundBuilderElement>();
_builderObject = new();
}
@ -39,7 +42,7 @@ public class RoundRunningViewModel : ViewModelBase
private readonly IMethodSharingService<Participant> _sharingService;
private readonly ICombinedRepository _combined;
private readonly IObjectMessageService _objectMessage;
private readonly IOverlayService _overlay;
private ObservableCollection<RoundBuilderGroup> _GameRoundList = new();
private ObservableCollection<Participant> _ParticipantList = new();
private ObservableCollection<RoundBuilderElement> _roundElements;
@ -86,6 +89,7 @@ public class RoundRunningViewModel : ViewModelBase
public ObservableCollection<RoundBuilderElement> Get()
{
_overlay.ShowSplash("Laddar...", 3000);
if (_objectMessage.CurrentGroup != null)
{