summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/RRBTournament.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/Aktywator/RRBTournament.cs b/Aktywator/RRBTournament.cs
index d35e8f3..20a3c21 100644
--- a/Aktywator/RRBTournament.cs
+++ b/Aktywator/RRBTournament.cs
@@ -61,10 +61,17 @@ namespace Aktywator
names.Add(pairNo, new List<string>());
foreach (XmlNode player in pair.SelectNodes("gracz/nazwisko"))
{
- string[] name = player.InnerText.Trim().Split(' ');
- if (name.Length > 0)
+ if ("pauza".Equals(player.InnerText.Trim()))
{
- name[0] = name[0][0].ToString();
+ names[pairNo].Add("");
+ }
+ else
+ {
+ string[] name = player.InnerText.Trim().Split(' ');
+ if (name.Length > 0)
+ {
+ name[0] = (name[0].Length > 0) ? name[0][0].ToString() : "";
+ }
names[pairNo].Add(String.Join(" ", name));
}
}