summaryrefslogtreecommitdiff
path: root/Aktywator/Tournament.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator/Tournament.cs')
-rw-r--r--Aktywator/Tournament.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs
index 117b1da..d6da2d4 100644
--- a/Aktywator/Tournament.cs
+++ b/Aktywator/Tournament.cs
@@ -43,6 +43,12 @@ namespace Aktywator
virtual public void displayNameList(DataGridView grid)
{
Dictionary<int, List<string>> names = this.getNameList();
+ if (names.Count == 0)
+ {
+ MessageBox.Show(
+ "Lista pobranych nazwisk jest pusta - być może coś poszło nie tak przy ich pobieraniu.",
+ "Pusta lista nazwisk", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ }
foreach (KeyValuePair<int, List<string>> item in names) {
if (!this.updateNameListRow(grid, item.Key, item.Value))
{