From 6a66e9c3b1c7f04b047883cc034c616681297c6f Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 28 Dec 2017 01:51:43 +0100 Subject: Warning if names list from tournament (MySQL/RRT) is empty --- Aktywator/Tournament.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Aktywator/Tournament.cs') 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> 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> item in names) { if (!this.updateNameListRow(grid, item.Key, item.Value)) { -- cgit v1.2.3