summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/Bws.cs12
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;
}