improved theming, error handling, table sort
This commit is contained in:
parent
35256ba88d
commit
7ce0e543ec
11 changed files with 151 additions and 68 deletions
|
@ -5,4 +5,16 @@ internal sealed record class Scores(int Kills = 0, int Deaths = 0)
|
|||
public int Kills { get; set; } = Kills;
|
||||
|
||||
public int Deaths { get; set; } = Deaths;
|
||||
|
||||
public double Ratio
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Kills == 0)
|
||||
return 0;
|
||||
if (Deaths == 0)
|
||||
return Kills;
|
||||
return Kills / (double)Deaths;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue