summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-30 20:36:32 +0200
committeremkael <emkael@tlen.pl>2017-09-30 20:36:32 +0200
commit45550ac5edd1967c3cbaf8a2c396e6a8bc83ca05 (patch)
treef0e21aee8ec9aef6c0a964e18f7c24d6001d3b10 /Aktywator
parent53c3fbcff3487079e538207d72c1b18ef2b09d68 (diff)
Force-setting name-related settings on names loadingv1.1.2-beta
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/Bws.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index fd24418..cde192a 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -691,15 +691,21 @@ namespace Aktywator
}
}
}
+ StringBuilder errors = new StringBuilder();
List<Setting> settings = new List<Setting>();
settings.Add(new Setting("BM2NumberEntryEachRound", "integer", (tournament.type == Tournament.TYPE_TEAMY) ? "1" : "0"));
settings.Add(new Setting("BM2NumberEntryPreloadValues", "integer", "1"));
foreach (Setting s in settings)
{
s.createField(sql);
+ Setting.save(s.name, s.defaultStr, this, errors);
}
if (interactive)
{
+ if (errors.Length > 0)
+ {
+ MessageBox.Show(errors.ToString(), "Błąd ustawiania opcji BWS", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ }
MessageBox.Show("Synchronizacja zakończona!\nPrzejrzanych nazwisk: " + count + "\nZmienionych: " + countNew,
"Synchronizacja nazwisk", MessageBoxButtons.OK, MessageBoxIcon.Information);
if (sql.selectOne("SELECT BM2ShowPlayerNames FROM Settings") != "1")