diff options
author | emkael <emkael@tlen.pl> | 2018-04-13 17:05:46 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-04-13 17:05:46 +0200 |
commit | 252f77a86f9d70800e7cc9aa58de2557fba5fdaa (patch) | |
tree | 1f8cbb1c4e3dbae3f6bbb802f596f1e7d629b8da /Aktywator | |
parent | 31c37824034320c4f87c91e1bf6d6e0c98e26524 (diff) |
Forcing section group settings and a warning if different records are uploaded to sections
Fixes #42
Diffstat (limited to 'Aktywator')
-rw-r--r-- | Aktywator/Bws.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index 19a2463..15219f9 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -119,6 +119,16 @@ namespace Aktywator this.setHandRecordInfo(board.Key); } } + main.xShowResults_CheckedChanged(null, EventArgs.Empty); + if (this.detectDifferentRecordsInSections()) + { + if (main.xGroupSections.Checked) + { + MessageBox.Show(MainForm.differentRecordsInSections, "Ustawienia grupowania zapisów w sektorach", MessageBoxButtons.OK, MessageBoxIcon.Warning); + main.xGroupSections.Checked = false; + } + Setting.saveSectionGroups(this.sql, main.xGroupSections.Checked); + } } private void setHandRecordInfo(int board, string section = null, List<string> layout = null, bool analysis = false) @@ -514,7 +524,7 @@ namespace Aktywator public void sectionGroupWarning() { main.lGroupSectionsWarning.Visible = false; - if (main.xShowResults.Checked) + if (main.xShowResults.Checked || this.detectDifferentRecordsInSections()) { main.lGroupSectionsWarning.Visible = true; } |