summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-11-17 10:39:29 +0100
committeremkael <emkael@tlen.pl>2018-11-17 14:29:51 +0100
commit4a536d0799685f3e530bc1782420e32a24b58ca2 (patch)
tree352bc9d63f15381336b1e2066181dba8b632a886
parenta6d968da1ea8031767fbdef02ccc89953d3de2a2 (diff)
Only set scoring type if scoring is enabled, to avoid unnecessary table grouping (so that suspicious contracts work better)
-rw-r--r--Aktywator/Bws.cs20
-rw-r--r--Aktywator/Resources/BuildDate.txt2
2 files changed, 15 insertions, 7 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index 3d111e2..75e9b13 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -584,13 +584,21 @@ namespace Aktywator
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);
- Setting.saveSectionGroups(this.sql, main.xGroupSections.Checked, (this.getMySQLDatabaseForSection() != null) ? Convert.ToInt32(main.numTeamsTableOffset.Value) : 0);
- int scoringType = main.getScoringType();
- Setting.saveScoringType(this.sql, scoringType, section);
- if (scoringType > 1 && scoringType < 4)
+ if (main.xShowResults.Checked)
{
- MessageBox.Show("Pamiętaj o skonfigurowaniu opcji liczenia turnieju na IMP (średnia, odrzucanie w butlerze, uśrednianie cavendisha) w Bridgemate Control Software ***PRZED*** wystartowaniem sesji!", "Ustawienia obliczania wyników",
- MessageBoxButtons.OK, MessageBoxIcon.Information);
+ Setting.saveSectionGroups(this.sql, main.xGroupSections.Checked, (this.getMySQLDatabaseForSection() != null) ? Convert.ToInt32(main.numTeamsTableOffset.Value) : 0);
+ int scoringType = main.getScoringType();
+ Setting.saveScoringType(this.sql, scoringType, section);
+ if (scoringType > 1 && scoringType < 4)
+ {
+ MessageBox.Show("Pamiętaj o skonfigurowaniu opcji liczenia turnieju na IMP (średnia, odrzucanie w butlerze, uśrednianie cavendisha) w Bridgemate Control Software ***PRZED*** wystartowaniem sesji!", "Ustawienia obliczania wyników",
+ MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ }
+ else
+ {
+ Setting.saveSectionGroups(this.sql, main.xGroupSections.Checked, 0);
+ Setting.saveScoringType(this.sql, 1, section);
}
this.loadSettings();
}
diff --git a/Aktywator/Resources/BuildDate.txt b/Aktywator/Resources/BuildDate.txt
index ee6b425..0ddc042 100644
--- a/Aktywator/Resources/BuildDate.txt
+++ b/Aktywator/Resources/BuildDate.txt
@@ -1 +1 @@
-2018-11-16
+2018-11-17