Przeglądaj źródła

Fixed scenarios.

Tig 1 rok temu
rodzic
commit
d478a45092

+ 2 - 4
UICatalog/Scenarios/ListColumns.cs

@@ -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",

+ 6 - 3
UICatalog/Scenarios/ProgressBarStyles.cs

@@ -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;
                                    };