diff options
author | emkael <emkael@tlen.pl> | 2017-08-22 20:17:21 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-08-22 20:17:21 +0200 |
commit | b806ab2d43746a2c5af4a9db50924db93fc7242a (patch) | |
tree | e1c6eacc218de10328fe7b141e859b40f1f80c2b /Aktywator/Bws.cs | |
parent | dbbe1080a30785fd09d04d65ddb81a0cbc261327 (diff) |
2.2.1 firmware options regarding player names implemented as a fix to #9
Diffstat (limited to 'Aktywator/Bws.cs')
-rw-r--r-- | Aktywator/Bws.cs | 9 |
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, |