Fixed scenarios.

This commit is contained in:
Tig
2024-07-01 13:04:08 -06:00
parent 1ab436c03f
commit d478a45092
2 changed files with 8 additions and 7 deletions

View File

@@ -120,8 +120,7 @@ public class ListColumns : Scenario
{
Checked = _listColView.Style
.ShowHorizontalBottomline,
CheckType = MenuItemCheckStyle
.Checked
CheckType = MenuItemCheckStyle.Checked
},
_miCellLines = new (
"_CellLines",
@@ -131,8 +130,7 @@ public class ListColumns : Scenario
{
Checked = _listColView.Style
.ShowVerticalCellLines,
CheckType = MenuItemCheckStyle
.Checked
CheckType = MenuItemCheckStyle.Checked
},
_miExpandLastColumn = new (
"_ExpandLastColumn",

View File

@@ -233,7 +233,10 @@ public class ProgressBarStyles : Scenario
var ckbBidirectional = new CheckBox
{
X = Pos.Center (), Y = Pos.Bottom (continuousPB) + 1, Text = "BidirectionalMarquee", State = CheckState.Checked
X = Pos.Center (),
Y = Pos.Bottom (continuousPB),
Text = "BidirectionalMarquee",
State = CheckState.Checked
};
container.Add (ckbBidirectional);
@@ -288,9 +291,9 @@ public class ProgressBarStyles : Scenario
ckbBidirectional.Toggle += (s, e) =>
{
ckbBidirectional.State = e.CurrentValue;
ckbBidirectional.State = e.NewValue;
marqueesBlocksPB.BidirectionalMarquee =
marqueesContinuousPB.BidirectionalMarquee = e.CurrentValue == CheckState.Checked;
marqueesContinuousPB.BidirectionalMarquee = e.NewValue == CheckState.Checked;
};