Commit före flytt avStatusparameter från point till round
This commit is contained in:
@ -13,7 +13,6 @@ public class GamePoint : EntityBase
|
||||
_gameDate = DateTime.Now;
|
||||
_gameRoundRegNr = 0;
|
||||
_gameRegPoints = 0;
|
||||
_pointStatus = GamePointStatus.New;
|
||||
}
|
||||
|
||||
private int _gamePointId;
|
||||
@ -22,7 +21,6 @@ public class GamePoint : EntityBase
|
||||
private DateTime _gameDate;
|
||||
private int _gameRoundRegNr;
|
||||
private int _gameRegPoints;
|
||||
private GamePointStatus _pointStatus;
|
||||
|
||||
[PrimaryKey]
|
||||
[AutoIncrement]
|
||||
@ -91,16 +89,6 @@ public class GamePoint : EntityBase
|
||||
}
|
||||
}
|
||||
|
||||
[Column("PointStatus")]
|
||||
public GamePointStatus PointStatus
|
||||
{
|
||||
get { return _pointStatus; }
|
||||
set
|
||||
{
|
||||
_pointStatus = value;
|
||||
RaisePropertyChanged(nameof(PointStatus));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -12,11 +12,13 @@ public class GameRound : EntityBase
|
||||
{
|
||||
_gameRoundId = 0;
|
||||
_gameRoundStartDate = DateTime.Now;
|
||||
_gameStatus = GamePointStatus.New;
|
||||
_gameRoundFinished = null;
|
||||
}
|
||||
|
||||
private int _gameRoundId;
|
||||
private DateTime _gameRoundStartDate;
|
||||
private GamePointStatus _gameStatus;
|
||||
private DateTime? _gameRoundFinished;
|
||||
|
||||
[Column("GameRoundFinished")]
|
||||
@ -41,6 +43,18 @@ public class GameRound : EntityBase
|
||||
}
|
||||
}
|
||||
|
||||
[Column("GameStatus")]
|
||||
public GamePointStatus PointStatus
|
||||
{
|
||||
get { return _gameStatus; }
|
||||
set
|
||||
{
|
||||
_gameStatus = value;
|
||||
RaisePropertyChanged(nameof(PointStatus));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[PrimaryKey]
|
||||
[AutoIncrement]
|
||||
[Column("GameRoundId")]
|
||||
@ -54,6 +68,10 @@ public class GameRound : EntityBase
|
||||
}
|
||||
}
|
||||
|
||||
public string GameRoundStartDateString
|
||||
{
|
||||
get { return _gameRoundStartDate.ToString("yyyy-MM-dd"); }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user