Fixed checkbox code in scenarios

This commit is contained in:
Tig
2024-07-01 13:09:22 -06:00
parent d478a45092
commit e365e8e34b
2 changed files with 2 additions and 1 deletions

View File

@@ -484,7 +484,7 @@ public class TextAlignmentAndDirection : Scenario
Enabled = false
};
justifyCheckbox.Toggle += (s, e) => ToggleJustify (e.NewValue == CheckState.Checked);
justifyCheckbox.Toggle += (s, e) => ToggleJustify (e.NewValue != CheckState.Checked);
justifyOptions.SelectedItemChanged += (s, e) => { ToggleJustify (false, true); };

View File

@@ -34,6 +34,7 @@ public class TrueColors : Scenario
Y = y++,
State = canTrueColor ? CheckState.Checked : CheckState.UnChecked,
CanFocus = false,
Enabled = false,
Text = "Driver supports true color "
};
app.Add (cbSupportsTrueColor);