Changed Id format to N0 (with thousands separator)

This commit is contained in:
Rick Falkvinge
2015-02-27 20:02:48 +01:00
parent 9a3618fe26
commit 70de795f4e
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -146,17 +146,17 @@ namespace Swarmops.Logic.Support
{
// The last sequence was just a single number.
result += ", #" + ids[index - 1];
result += ", #" + ids[index - 1].ToString("N0");
}
else if (indexOfLastDiscontinuity == index - 2)
{
// Two numbers in last sequence. Treat as discontinuous.
result += ", #" + ids[indexOfLastDiscontinuity] + ", #" + ids[index - 1];
result += ", #" + ids[indexOfLastDiscontinuity].ToString("N0") + ", #" + ids[index - 1].ToString("N0");
}
else
{
// Contiguity.
result += ", #" + ids[indexOfLastDiscontinuity] + "-" + ids[index - 1];
result += ", #" + ids[indexOfLastDiscontinuity].ToString("N0") + "-" + ids[index - 1].ToString("N0");
}
indexOfLastDiscontinuity = index;
+1 -1
View File
@@ -415,7 +415,7 @@ namespace Swarmops.Logic.Swarm
public string Canonical // On the canonical format "Rick Falkvinge (#1)"
{
get { return Name + " (#" + Identity + ")"; }
get { return Name + " (#" + Identity.ToString("N0") + ")"; }
}
public Image Portrait