diff options
author | emkael <emkael@tlen.pl> | 2017-08-22 13:13:08 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-08-22 13:57:14 +0200 |
commit | c3be44ed94e61c3c4bb6a69f0db891580ee7a037 (patch) | |
tree | 1e27944e7ed3279d3f82a55c5a960aa3ca02ccfc /Aktywator/RRBTournament.cs | |
parent | dd57a2d7819112dad810c258a2b19f62c5b09fa6 (diff) |
Filling empty player names with spaces so that "name n/a" message is not displayed in the bridgemate
Diffstat (limited to 'Aktywator/RRBTournament.cs')
-rw-r--r-- | Aktywator/RRBTournament.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Aktywator/RRBTournament.cs b/Aktywator/RRBTournament.cs index 20a3c21..a86e199 100644 --- a/Aktywator/RRBTournament.cs +++ b/Aktywator/RRBTournament.cs @@ -63,14 +63,14 @@ namespace Aktywator { if ("pauza".Equals(player.InnerText.Trim())) { - names[pairNo].Add(""); + names[pairNo].Add(" "); } else { string[] name = player.InnerText.Trim().Split(' '); if (name.Length > 0) { - name[0] = (name[0].Length > 0) ? name[0][0].ToString() : ""; + name[0] = (name[0].Length > 0) ? name[0][0].ToString() : " "; } names[pairNo].Add(String.Join(" ", name)); } @@ -81,7 +81,7 @@ namespace Aktywator { while (pair.Value.Count < 2) { - pair.Value.Add(""); + pair.Value.Add(" "); } } return names; |