summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/Bws.cs36
-rw-r--r--Aktywator/MainForm.Designer.cs63
-rw-r--r--Aktywator/MainForm.cs14
-rw-r--r--Aktywator/MainForm.resx191
-rw-r--r--Aktywator/Setting.cs28
5 files changed, 202 insertions, 130 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index e292f2d..5793417 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -64,7 +64,7 @@ namespace Aktywator
return sector.ToUpper()[0] - 'A' + 1;
}
- private string sectorNumberToLetter(int sector)
+ internal string sectorNumberToLetter(int sector)
{
char character = (char)('A' - 1 + sector);
return character.ToString();
@@ -270,12 +270,18 @@ namespace Aktywator
public void loadSettings()
{
+ if (settings == null)
+ {
+ return;
+ }
+ main.lFirstSectorSettings.Visible = false;
+ string section = "*".Equals(main.cbSettingsSection.Text) ? null : this.sectorLetterToNumber(main.cbSettingsSection.Text).ToString();
StringBuilder errors = new StringBuilder();
foreach (Setting s in settings)
{
try
{
- s.load();
+ s.load(section);
}
catch (OleDbException)
{
@@ -283,13 +289,18 @@ namespace Aktywator
errors.Append(s.name);
}
}
- main.xShowContract.Checked = (Setting.load("ShowContract", this, errors) == "0");
- main.xShowPlayerNames.Checked = (Setting.load("BM2ShowPlayerNames", this, errors) != "0");
- main.xPINcode.Text = Setting.load("BM2PINcode", this, errors);
+ main.xShowContract.Checked = (Setting.load("ShowContract", this, errors, section) == "0");
+ main.xShowPlayerNames.Checked = (Setting.load("BM2ShowPlayerNames", this, errors, section) != "0");
+ main.xPINcode.Text = Setting.load("BM2PINcode", this, errors, section);
int resultsOverview = 0;
- int.TryParse(Setting.load("BM2ResultsOverview", this, errors), out resultsOverview);
+ int.TryParse(Setting.load("BM2ResultsOverview", this, errors, section), out resultsOverview);
main.xResultsOverview.SelectedIndex = resultsOverview;
+ if (section == null && main.cbSettingsSection.Items.Count > 2)
+ {
+ main.lFirstSectorSettings.Visible = true;
+ }
+
if (errors.Length > 0)
{
MessageBox.Show("Nie można uzyskać dostępu do pól: \n" + errors.ToString() + ".\nPrawdopodobnie te pola nie istnieją.",
@@ -299,12 +310,13 @@ namespace Aktywator
public void saveSettings()
{
+ string section = "*".Equals(main.cbSettingsSection.Text) ? null : this.sectorLetterToNumber(main.cbSettingsSection.Text).ToString();
StringBuilder errors = new StringBuilder();
foreach (Setting s in settings)
{
try
{
- s.save();
+ s.save(section);
}
catch (OleDbException)
{
@@ -312,11 +324,11 @@ namespace Aktywator
errors.Append(s.name);
}
}
- Setting.save("ShowContract", main.xShowContract.Checked ? "0" : "1", this, errors);
- Setting.save("BM2ShowPlayerNames", main.xShowPlayerNames.Checked ? "1" : "0", this, errors);
- Setting.save("BM2NameSource", "2", this, errors);
- Setting.save("BM2PINcode", "'" + main.xPINcode.Text + "'", this, errors);
- Setting.save("BM2ResultsOverview", main.xResultsOverview.SelectedIndex.ToString(), this, errors);
+ Setting.save("ShowContract", main.xShowContract.Checked ? "0" : "1", this, errors, section);
+ Setting.save("BM2ShowPlayerNames", main.xShowPlayerNames.Checked ? "1" : "0", this, errors, section);
+ Setting.save("BM2NameSource", "2", this, errors, section);
+ Setting.save("BM2PINcode", "'" + main.xPINcode.Text + "'", this, errors, section);
+ Setting.save("BM2ResultsOverview", main.xResultsOverview.SelectedIndex.ToString(), this, errors, section);
this.loadSettings();
}
diff --git a/Aktywator/MainForm.Designer.cs b/Aktywator/MainForm.Designer.cs
index 3ecf440..c9624a3 100644
--- a/Aktywator/MainForm.Designer.cs
+++ b/Aktywator/MainForm.Designer.cs
@@ -38,6 +38,9 @@
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
+ this.lFirstSectorSettings = new System.Windows.Forms.Label();
+ this.cbSettingsSection = new System.Windows.Forms.ComboBox();
+ this.label1 = new System.Windows.Forms.Label();
this.statusStrip2 = new System.Windows.Forms.StatusStrip();
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
this.lRequiredVersion = new System.Windows.Forms.ToolStripStatusLabel();
@@ -82,7 +85,6 @@
this.xShowPairNumbers = new System.Windows.Forms.CheckBox();
this.xMemberNumbersNoBlankEntry = new System.Windows.Forms.CheckBox();
this.xShowPlayerNames = new System.Windows.Forms.CheckBox();
- this.label1 = new System.Windows.Forms.Label();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.namesPanel = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
@@ -217,6 +219,9 @@
//
// tabPage1
//
+ this.tabPage1.Controls.Add(this.lFirstSectorSettings);
+ this.tabPage1.Controls.Add(this.cbSettingsSection);
+ this.tabPage1.Controls.Add(this.label1);
this.tabPage1.Controls.Add(this.statusStrip2);
this.tabPage1.Controls.Add(this.toolStrip2);
this.tabPage1.Controls.Add(this.groupBox7);
@@ -225,7 +230,6 @@
this.tabPage1.Controls.Add(this.groupBox4);
this.tabPage1.Controls.Add(this.groupBox3);
this.tabPage1.Controls.Add(this.groupBox2);
- this.tabPage1.Controls.Add(this.label1);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
@@ -234,6 +238,37 @@
this.tabPage1.Text = "Ustawienia";
this.tabPage1.UseVisualStyleBackColor = true;
//
+ // lFirstSectorSettings
+ //
+ this.lFirstSectorSettings.AutoSize = true;
+ this.lFirstSectorSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
+ this.lFirstSectorSettings.Location = new System.Drawing.Point(119, 39);
+ this.lFirstSectorSettings.Name = "lFirstSectorSettings";
+ this.lFirstSectorSettings.Size = new System.Drawing.Size(263, 13);
+ this.lFirstSectorSettings.TabIndex = 49;
+ this.lFirstSectorSettings.Text = "załadowano ustawienia z pierwszego sektora";
+ //
+ // cbSettingsSection
+ //
+ this.cbSettingsSection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cbSettingsSection.FormattingEnabled = true;
+ this.cbSettingsSection.Items.AddRange(new object[] {
+ "*"});
+ this.cbSettingsSection.Location = new System.Drawing.Point(59, 36);
+ this.cbSettingsSection.Name = "cbSettingsSection";
+ this.cbSettingsSection.Size = new System.Drawing.Size(53, 21);
+ this.cbSettingsSection.TabIndex = 48;
+ this.cbSettingsSection.SelectedIndexChanged += new System.EventHandler(this.cbSettingsSection_SelectedIndexChanged);
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(12, 39);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 13);
+ this.label1.TabIndex = 47;
+ this.label1.Text = "Sektor:";
+ //
// statusStrip2
//
this.statusStrip2.BackColor = System.Drawing.Color.White;
@@ -461,7 +496,7 @@
this.groupBox5.Controls.Add(this.xCheckLeadCard);
this.groupBox5.Controls.Add(this.xLeadCard);
this.groupBox5.Controls.Add(this.xViewHandrecord);
- this.groupBox5.Location = new System.Drawing.Point(1, 355);
+ this.groupBox5.Location = new System.Drawing.Point(4, 355);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(257, 121);
this.groupBox5.TabIndex = 42;
@@ -592,7 +627,7 @@
this.groupBox3.Controls.Add(this.xIntermediateResults);
this.groupBox3.Controls.Add(this.xAutoBoardNumber);
this.groupBox3.Controls.Add(this.xCollectBidding);
- this.groupBox3.Location = new System.Drawing.Point(1, 209);
+ this.groupBox3.Location = new System.Drawing.Point(3, 209);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(257, 140);
this.groupBox3.TabIndex = 40;
@@ -655,9 +690,9 @@
this.groupBox2.Controls.Add(this.xShowPairNumbers);
this.groupBox2.Controls.Add(this.xMemberNumbersNoBlankEntry);
this.groupBox2.Controls.Add(this.xShowPlayerNames);
- this.groupBox2.Location = new System.Drawing.Point(1, 65);
+ this.groupBox2.Location = new System.Drawing.Point(5, 65);
this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(257, 138);
+ this.groupBox2.Size = new System.Drawing.Size(256, 138);
this.groupBox2.TabIndex = 39;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Rozstawienie";
@@ -705,18 +740,6 @@
this.xShowPlayerNames.Text = "pokazuj nazwiska";
this.xShowPlayerNames.UseVisualStyleBackColor = true;
//
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.label1.ForeColor = System.Drawing.SystemColors.WindowText;
- this.label1.Location = new System.Drawing.Point(89, 37);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(398, 13);
- this.label1.TabIndex = 0;
- this.label1.Text = "Te same ustawienia są ustawiane dla wszystkich sektorów, przynajmniej na razie :-" +
- ")";
- //
// tabPage2
//
this.tabPage2.Controls.Add(this.namesPanel);
@@ -1335,7 +1358,6 @@
public System.Windows.Forms.CheckBox xShowResults;
public System.Windows.Forms.TabPage tabPage2;
public System.Windows.Forms.CheckBox xConfirmNP;
- public System.Windows.Forms.Label label1;
public System.Windows.Forms.CheckBox xShowPlayerNames;
public System.Windows.Forms.CheckBox xAutoBoardNumber;
public System.Windows.Forms.CheckBox xScoreCorrection;
@@ -1414,6 +1436,9 @@
private System.Windows.Forms.Button button1;
private System.Windows.Forms.NumericUpDown numNamesRefreshInterval;
private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label1;
+ public System.Windows.Forms.Label lFirstSectorSettings;
+ public System.Windows.Forms.ComboBox cbSettingsSection;
}
}
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs
index 712a104..0187e84 100644
--- a/Aktywator/MainForm.cs
+++ b/Aktywator/MainForm.cs
@@ -67,6 +67,7 @@ namespace Aktywator
bws.convert();
labelFilename.Text = filename;
+ this.fillSectionSelector(bws.getSections());
// 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)));
@@ -77,6 +78,14 @@ namespace Aktywator
this.WindowState = FormWindowState.Normal;
}
+ private void fillSectionSelector(string sections)
+ {
+ cbSettingsSection.SelectedIndex = 0;
+ foreach (string section in sections.Split(',')) {
+ cbSettingsSection.Items.Add(bws.sectorNumberToLetter(Int32.Parse(section.Trim())));
+ }
+ }
+
private void bindSettingChanges()
{
foreach (Setting s in this.bwsSettings)
@@ -538,5 +547,10 @@ namespace Aktywator
}
}
+ private void cbSettingsSection_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ bws.loadSettings();
+ }
+
}
}
diff --git a/Aktywator/MainForm.resx b/Aktywator/MainForm.resx
index 30e33ef..766bdc0 100644
--- a/Aktywator/MainForm.resx
+++ b/Aktywator/MainForm.resx
@@ -266,22 +266,22 @@
<data name="bMysqlSettings.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAORSURBVFhH7ZX9T1JRGMfd2vrZ3/nN9fJLWcuWKbpbNhOH
- U0KvpEMN7GWWZZYXUJuULylpkyxDkRAyRE1FBZ2iYC1zLVu5XrYye8+SzPoL8OmeswsBba3isrXWd3vG
- xs5zvs/znHM+N+y//ikdPDsFKA7U3ALmr9BKRA2JcsrHIIuyUfxiK0daeQOuOT5D7ik7JBzq5iTnG0WZ
- JweBJzHGMSnsKr/qBnRNfgWJ0gFEntOttS3gAjQDb4FIH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CJKXPXt27BBklo+AbWTnHpLIje87LVLM2
+ rMfmzuC9Rfacb9C/t2F9HT16p/DeIgvn0dkizucqHoA167OujTvO+z+JnkDSAd41CBBUJvrFqNyChDef
+ W7Pej6+Y9eSV73WI91uVR1A+1NKXbndADrvdblasfmy29W/IxeUn1DkClz6f0skAAAAASUVORK5CYII=
</value>
</data>
<data name="bForceSync.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -298,56 +298,57 @@
<data name="bTruncate.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAuJSURBVGhD7ZkJUFRXFoY7IGuzNvRCN3RDQzf7jqyCiCJo
- FIiiIrKJiKLGKLjEFY0LYmI0LokxyWQqqckYs4wanYxTSdwRIc1OQFk6LM3eIIpaTkz+OQ0vM5mkUigD
- 0VTlq7rV9Hv/vX3uveece96D9QdPGwPFhc/eUxS+dfv0J+/fPnvyvb5Tn2zvPnHCl7n9RGhMT3dszcpc
- 2jTvufe7M1MuFYcFX7gc4r+BuT3EDyUl3PuKor/1f/oXdO5cg7aNWejakYPeQ3m4/ec3ULP/5bN+traO
- jHzMqZozx6hpeVaman329Vt7NqNz0wrUxk/DaVdHLDFlnxFra8eTzHBQ/EOLMvCBoqCt+7WdaMqah+bl
- CVDlLET7pix0bl+Nrl1rcO+1l6DKzf3XthnTNw12GiPqIyN5dQlz8zpffFF9950DGHgjD42L5+OMsxzJ
- hoYfG7NYM0gmGFITcVOn+qo+P/lDR+7zZPwctK5Og2pdBjpyX0DXng3o3peLnv3b0LNvK/pf2Qwc2oHr
- Sxcp/EUiT2aIUaMhecGmlnXr+u+8exgPPnwTHXkbcG1yKHLNzb+2ZmktJIn1kPInHNm6eQc+e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KSdvseTeMNfSmkuXqUT5DaHLYrlQHtaUDBq3GZOT93d++7BY/wYb0MwCKnkXKwAAAABJRU5ErkJg
+ gg==
</value>
</data>
<metadata name="toolStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
@@ -373,35 +374,35 @@
<data name="bClearHands.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAaOSURBVFhHtVcJUFNXFMXuy7SdrtNOO12m03ZqO20tg4gQ
- PopIJiECIiiQDQi4gEgAxT0ioHWDCLIIArEaQRaRsggEDciWgMCoqChF9h0CARWQwu17n68DZQtVz8yZ
- yfy8f8+999377vtazxttcXH7ms+ebauWSh82JCTt0DZzeUtLJHqJ+vvFolUaL62LjR3ozs6GztRUQI5A
- jUTScz0igkcQvDdeqCMtUmlsW1TUo35lCQxcK4X+MkwldGZmgjw8bPRO8PHWPF9/Szp98+vP3ZEmieRU
- CxJXK4pJ0f5SRKUCsQT6FZjF0JKcBBX+fiNFu33uxzk7ryQd0dJaMG7hGdAYE3OyGYuXFE0Rxc/UxZiF
- oC4qIFn7pwRk9vZDUr7jJhMT9tuUmf+H+shTYU1BkkFseDZRdeFVUBdchb6CfOi7mg+9iHFWVu3LGI5f
- Uabmj7rISHFDUNAgaXxO0bxx5ssR86CzoqJbYrW63XAVZxFlbn64HxYWWI/Ee/Pzp4iSgk9ESUHEvCsk
- exF7lMqBNE/PhxEEoaYxuYspk5rj79CQo8iBIWxMI1H5Zei9gpkLvZWVgzkiUb/URQCHdXQGDBhsXcqs
- ZqgRiw/XhgQPYaMai17GlEFd+bURWXigKt5tEwSZmw8e1NVNMTTj61Cm58Y9sdi/RiQaUiFjM4siMVJU
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kaLqrq1vwLB8jjs6GZqWyP3/HNsja4Ec6
+ kIGKLokghgLZfG+CxZu/hMn9fNKKH41y0fpVimWmQ40R4dCKRNsS4qAtMR7aMZMSQH1UCj1VF+/gLSEP
+ JFSkLSrlo8LgIMhGhw12IBOlXmzNGg5f6bzHhMUzJqx4X5OXUX2uXnhhjkjEreDxButCD5Ci7dJEUGMe
+ TQI1ukrdQ7yfnV3boVI11OXnNcsDd0JOwAbIpqKX2a+ARAeHTBNLDkFn8r+jrlx63vtQa+AXwt29FikE
+ At21QPEY4XvHjj6lGlG+dTPkIvEcKvpkZ0dIZDJrTNAxa8zi/rR0qed7M7/9ohfm29m9KXAUfK9Y61FX
+ KvIZcWCUOGYDqo2zqOjI6JEDKVw2RJkv0y5icsxRwf1mas35cNJ20wOz8JUZV658zZq8A67c4TZpwhgH
+ rktCAVc9diDV3RXES4jH1tZ8KxMmb+4CG/YnU7abvsBtgwdGjpdXaIiTw3Aj6o4nDpSHBJHpT1vlQbbb
+ KlsXJ3y/o5m7fDZtu80EOI0mTOf3M3xE7knOjoM1uDjRlhRs2QSn3PggXkQfDrFz9nsyYKiPjecMVBdo
+ dr8TKlhNy/cUNKTaWsNJG5sHx+ysq3cttxHRLPgLcbvh2kGrn/1LZ0JQxYkPFWOm66/4gME3Wvzb2JLz
+ JdluM674mWMWPtHwNMNDBRP/fraPTQODfwF0wF9zWpjtYAAAAABJRU5ErkJggg==
</value>
</data>
<data name="label11.Text" xml:space="preserve">
diff --git a/Aktywator/Setting.cs b/Aktywator/Setting.cs
index e981328..a5540d6 100644
--- a/Aktywator/Setting.cs
+++ b/Aktywator/Setting.cs
@@ -26,23 +26,33 @@ namespace Aktywator
this.fwV = firmwareVersion;
}
- public void load()
+ public void load(string section = null)
{
StringBuilder str = new StringBuilder();
str.Append("SELECT ");
str.Append(this.name);
str.Append(" FROM Settings");
+ if (section != null)
+ {
+ str.Append(" WHERE `Section` = ");
+ str.Append(section);
+ }
field.Checked = false;
string a = bws.sql.selectOne(str.ToString());
field.Checked = a.ToUpper() == "TRUE" ? true : false;
}
- public static string load(string name, Bws bws, StringBuilder errors)
+ public static string load(string name, Bws bws, StringBuilder errors, string section = null)
{
StringBuilder str = new StringBuilder();
str.Append("SELECT ");
str.Append(name);
str.Append(" FROM Settings");
+ if (section != null)
+ {
+ str.Append(" WHERE `Section` = ");
+ str.Append(section);
+ }
try
{
return bws.sql.selectOne(str.ToString());
@@ -55,23 +65,33 @@ namespace Aktywator
}
}
- public void save()
+ public void save(string section = null)
{
StringBuilder str = new StringBuilder();
str.Append("UPDATE Settings SET ");
str.Append(this.name);
if (field.Checked) str.Append("=true");
else str.Append("=false");
+ if (section != null)
+ {
+ str.Append(" WHERE `Section` = ");
+ str.Append(section);
+ }
bws.sql.query(str.ToString());
}
- public static void save(string name, string value, Bws bws, StringBuilder errors)
+ public static void save(string name, string value, Bws bws, StringBuilder errors, string section = null)
{
StringBuilder str = new StringBuilder();
str.Append("UPDATE Settings SET ");
str.Append(name);
str.Append("=");
str.Append(value);
+ if (section != null)
+ {
+ str.Append(" WHERE `Section` = ");
+ str.Append(section);
+ }
try
{
bws.sql.query(str.ToString());