summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-22 20:17:21 +0200
committeremkael <emkael@tlen.pl>2017-08-22 20:17:21 +0200
commitb806ab2d43746a2c5af4a9db50924db93fc7242a (patch)
treee1c6eacc218de10328fe7b141e859b40f1f80c2b /Aktywator
parentdbbe1080a30785fd09d04d65ddb81a0cbc261327 (diff)
2.2.1 firmware options regarding player names implemented as a fix to #9
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/Bws.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index 674867c..e1bc061 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -192,6 +192,8 @@ namespace Aktywator
defaultSettings.Add(new Setting("BM2NumberValidation", "integer", "0"));
defaultSettings.Add(new Setting("BM2NameSource", "integer", "2"));
defaultSettings.Add(new Setting("BM2EnterHandrecord", "bit", "false"));
+ defaultSettings.Add(new Setting("BM2NumberEntryEachRound", "integer", "0"));
+ defaultSettings.Add(new Setting("BM2NumberEntryPreloadValues", "integer", "0"));
defaultSettings.Add(new Setting("Name", "text(18)", "''", "PlayerNumbers"));
defaultSettings.Add(new Setting("Updated", "bit", "false", "PlayerNumbers"));
@@ -441,6 +443,13 @@ namespace Aktywator
}
}
}
+ 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);
+ }
if (interactive)
{
MessageBox.Show("Synchronizacja zakończona!\nPrzejrzanych nazwisk: " + count + "\nZmienionych: " + countNew,