Infört Observable Property och observable object från Community Toolkit

This commit is contained in:
2025-10-13 08:59:26 +02:00
parent f5cc28f202
commit b2dbb9993f
21 changed files with 243 additions and 228 deletions

View File

@ -1,4 +1,4 @@
using Common.Library;
using CommunityToolkit.Mvvm.ComponentModel;
using SQLite;
namespace GreadyPoang.EntityLayer;
@ -6,7 +6,7 @@ namespace GreadyPoang.EntityLayer;
[Table("GameRound")]
public class GameRound : EntityBase
public class GameRound : ObservableObject
{
public GameRound()
{
@ -28,7 +28,7 @@ public class GameRound : EntityBase
set
{
_gameRoundFinished = value;
RaisePropertyChanged(nameof(GameRoundFinished));
OnPropertyChanged(nameof(GameRoundFinished));
}
}
@ -39,7 +39,7 @@ public class GameRound : EntityBase
set
{
_gameRoundStartDate = value;
RaisePropertyChanged(nameof(GameRoundStartDate));
OnPropertyChanged(nameof(GameRoundStartDate));
}
}
@ -50,7 +50,7 @@ public class GameRound : EntityBase
set
{
_gameStatus = value;
RaisePropertyChanged(nameof(GameStatus));
OnPropertyChanged(nameof(GameStatus));
}
}
@ -64,7 +64,7 @@ public class GameRound : EntityBase
set
{
_gameRoundId = value;
RaisePropertyChanged(nameof(GameRoundId));
OnPropertyChanged(nameof(GameRoundId));
}
}