40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using Common.Library;
|
|
using GreadyPoang.DataLayer;
|
|
using GreadyPoang.EntityLayer;
|
|
using System.Collections.ObjectModel;
|
|
|
|
namespace GreadyPoang.ViewModelLayer;
|
|
|
|
public class RoundRunningViewModel : ViewModelBase
|
|
{
|
|
|
|
public RoundRunningViewModel() : base()
|
|
{
|
|
}
|
|
|
|
public RoundRunningViewModel(
|
|
|
|
IRepository<GameRound> roundsRepo,
|
|
IRepository<GamePoint> pointsRepo,
|
|
IMethodSharingService<Participant> sharingService,
|
|
ICombinedRepository combined
|
|
) : base()
|
|
{
|
|
_roundsRepo = roundsRepo;
|
|
_pointsRepo = pointsRepo;
|
|
_sharingService = sharingService;
|
|
_combined = combined;
|
|
}
|
|
|
|
private readonly IRepository<GameRound>? _roundsRepo;
|
|
private readonly IRepository<GamePoint> _pointsRepo;
|
|
private readonly IMethodSharingService<Participant> _sharingService;
|
|
private readonly ICombinedRepository _combined;
|
|
|
|
private ObservableCollection<RoundBuilderGroup> _GameRoundList = new();
|
|
private ObservableCollection<Participant> _ParticipantList = new();
|
|
private ObservableCollection<RoundBuilderElement> _roundElements;
|
|
|
|
|
|
}
|