private void ReplaceCurrentTypeCounts(PostedTime replacement)
{
if(replacement.Type == Current.Type)
{
return;
}
switch(Current.Type)
{
case PostedTimeType.PersonalBest:
PersonalBestCount = Math.Max(PersonalBestCount - 1, 0);
break;
case PostedTimeType.SessionBest:
SessionBestCount = Math.Max(SessionBestCount - 1, 0);
break;
}
switch(replacement.Type)
{
case PostedTimeType.PersonalBest:
++PersonalBestCount;
break;
case PostedTimeType.SessionBest:
++SessionBestCount;
break;
}
}