From 616b4d11f37fc4ad2cecb1a14a2d2cdc6b8486b9 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 12 Sep 2017 18:42:01 +0200 Subject: Warning about inability to update section grouping during active session --- Aktywator/Bws.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Aktywator/Bws.cs') diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index d7b5552..763b11d 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -309,6 +309,7 @@ namespace Aktywator if (section == null && main.cbSettingsSection.Items.Count > 2) { main.lFirstSectorSettings.Visible = true; + this.sectionGroupWarning(); } if (errors.Length > 0) @@ -318,6 +319,15 @@ namespace Aktywator } } + public void sectionGroupWarning() + { + main.lGroupSectionsWarning.Visible = false; + if (main.xShowResults.Checked) + { + main.lGroupSectionsWarning.Visible = true; + } + } + private int getSectionGroupCount() { OleDbDataReader rows = sql.select("SELECT DISTINCT `Group` FROM Tables"); -- cgit v1.2.3