summaryrefslogtreecommitdiff
path: root/Aktywator/MainForm.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-07-27 14:16:22 +0200
committeremkael <emkael@tlen.pl>2017-07-27 14:16:22 +0200
commit79bf7b0fa374e3f92c05dfa5dae34eef83d12a0c (patch)
tree6e80c9a9511e372e6a4abd88779e0d1548cf96f7 /Aktywator/MainForm.cs
parent706d0a874b693252a4bab491226df876a819fb25 (diff)
Storing setting checkbox-version number association separately from BWS operations
Diffstat (limited to 'Aktywator/MainForm.cs')
-rw-r--r--Aktywator/MainForm.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs
index cfe2324..5999e4a 100644
--- a/Aktywator/MainForm.cs
+++ b/Aktywator/MainForm.cs
@@ -16,6 +16,7 @@ namespace Aktywator
public string date = "28.06.2017";
private Bws bws;
+ private List<Setting> bwsSettings;
private Tournament tournament;
private Version BCSVersion;
@@ -65,7 +66,9 @@ namespace Aktywator
bws.convert();
labelFilename.Text = filename;
- bws.initSettings();
+ // cloning Setting List returned from Bws, because we're going to extend it for version tracking purposes
+ this.bwsSettings = new List<Setting>(bws.initSettings());
+ this.bwsSettings.Add(new Setting("BM2ShowPlayerNames", this.xShowPlayerNames, bws, new Version(2, 0, 0), new Version(1, 3, 1)));
bws.loadSettings();
this.WindowState = FormWindowState.Normal;
}