diff options
author | emkael <emkael@tlen.pl> | 2017-12-28 01:51:43 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-12-28 01:51:43 +0100 |
commit | 6a66e9c3b1c7f04b047883cc034c616681297c6f (patch) | |
tree | d8d1a1e9c916b250c0e5bd765146080a4e6b154c /Aktywator/Tournament.cs | |
parent | bcad5e05ec264e551e1b9a4879b90cfb1c9754cc (diff) |
Warning if names list from tournament (MySQL/RRT) is empty
Diffstat (limited to 'Aktywator/Tournament.cs')
-rw-r--r-- | Aktywator/Tournament.cs | 6 |
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)) { |