summaryrefslogtreecommitdiff
path: root/Aktywator/MainForm.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-11-18 01:54:47 +0100
committeremkael <emkael@tlen.pl>2018-11-18 01:54:47 +0100
commit6e03cdb5b13c71b8b72d2188132a3e2a78f8f88b (patch)
treed6c08f91516100a2ed1dff9ce52f6b032b66a0dd /Aktywator/MainForm.cs
parentac5fdb3b54077f1f42fdbc76ed05916c18dbf8f7 (diff)
IMP scoring settings warning moved to warning icon instead of a message box
Diffstat (limited to 'Aktywator/MainForm.cs')
-rw-r--r--Aktywator/MainForm.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs
index 876388a..e0de79f 100644
--- a/Aktywator/MainForm.cs
+++ b/Aktywator/MainForm.cs
@@ -773,6 +773,7 @@ namespace Aktywator
{
type.Key.Checked = (type.Value == scoringType);
}
+ this.impScoringWarning();
}
private void scoringOptionsWarning()
@@ -780,6 +781,12 @@ namespace Aktywator
lScoringOptionsWarning.Visible = (xGroupSections.Checked || xShowPercentage.Checked);
}
+ private void impScoringWarning()
+ {
+ int scoringType = this.getScoringType();
+ this.lIMPScoringWarning.Visible = (scoringType > 1 && scoringType < 4);
+ }
+
private void lScoringOptionsWarning_Click(object sender, EventArgs e)
{
MessageBox.Show(MainForm.sectionGroupWarningLabel, "Ustawienia wyświetlania wyników", MessageBoxButtons.OK, MessageBoxIcon.Question);
@@ -798,5 +805,31 @@ namespace Aktywator
this.xFirstBoardManually.Checked = false;
}
}
+
+ private void lIMPScoringWarning_Click(object sender, EventArgs e)
+ {
+ 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);
+ }
+
+ private void rbMatchpoints_CheckedChanged(object sender, EventArgs e)
+ {
+ this.impScoringWarning();
+ }
+
+ private void rbIMPCavendish_CheckedChanged(object sender, EventArgs e)
+ {
+ this.impScoringWarning();
+ }
+
+ private void rbIMPButler_CheckedChanged(object sender, EventArgs e)
+ {
+ this.impScoringWarning();
+ }
+
+ private void rbIMPTeams_CheckedChanged(object sender, EventArgs e)
+ {
+ this.impScoringWarning();
+ }
}
}