Poängräkning fungerar i RoundRunning
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
using Common.Library;
|
||||
using GreadyPoang.EntityLayer;
|
||||
using GreadyPoang.Services;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
|
||||
@ -13,10 +14,16 @@ public class ParticipantViewModel : ViewModelBase
|
||||
|
||||
}
|
||||
|
||||
public ParticipantViewModel(IRepository<Participant> repo, IMethodSharingService<Participant> sharingService) : base()
|
||||
public ParticipantViewModel(
|
||||
IRepository<Participant> repo,
|
||||
IMethodSharingService<Participant> sharingService,
|
||||
AppShellViewModel appShell,
|
||||
IObjectMessageService objectMessage) : base()
|
||||
{
|
||||
_Repository = repo;
|
||||
_sharingService = sharingService;
|
||||
_appShell = appShell;
|
||||
_objectMessage = objectMessage;
|
||||
}
|
||||
|
||||
#endregion
|
||||
@ -26,6 +33,8 @@ public class ParticipantViewModel : ViewModelBase
|
||||
private ObservableCollection<Participant> _ParticipantList = new();
|
||||
private readonly IRepository<Participant>? _Repository;
|
||||
private readonly IMethodSharingService<Participant> _sharingService;
|
||||
private readonly AppShellViewModel _appShell;
|
||||
private readonly IObjectMessageService _objectMessage;
|
||||
#endregion
|
||||
|
||||
#region public Properties
|
||||
@ -55,6 +64,10 @@ public class ParticipantViewModel : ViewModelBase
|
||||
#region Get Method
|
||||
public ObservableCollection<Participant> Get()
|
||||
{
|
||||
if (_appShell.RoundRunningVisible == false)
|
||||
{
|
||||
_objectMessage.Delivered = true;
|
||||
}
|
||||
ParticipantList = _sharingService.Get();
|
||||
return ParticipantList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user