Esempio n. 1
0
 private void load(TestBrowser browser)
 {
     InternalChild = new FillFlowContainer
     {
         Spacing          = new Vector2(5),
         Direction        = FillDirection.Horizontal,
         RelativeSizeAxes = Axes.Y,
         AutoSizeAxes     = Axes.X,
         Children         = new Drawable[]
         {
             new SpriteText
             {
                 Padding = new MarginPadding(5),
                 Font    = FrameworkFont.Condensed,
                 Text    = "Assembly"
             },
             assemblyDropdown = new AssemblyDropdown
             {
                 Width   = 250,
                 Current = browser.Assembly
             },
             new BasicCheckbox
             {
                 LabelText           = "Run all steps",
                 RightHandedCheckbox = true,
                 AutoSizeAxes        = Axes.Both,
                 Anchor  = Anchor.CentreLeft,
                 Origin  = Anchor.CentreLeft,
                 Current = browser.RunAllSteps
             },
         }
     };
 }
Esempio n. 2
0
        private void load(TestBrowser browser)
        {
            BasicCheckbox runAllStepsCheckbox;

            InternalChild = new FillFlowContainer
            {
                Spacing          = new Vector2(5),
                Direction        = FillDirection.Horizontal,
                RelativeSizeAxes = Axes.Y,
                AutoSizeAxes     = Axes.X,
                Children         = new Drawable[]
                {
                    new SpriteText
                    {
                        Padding = new MarginPadding(5),
                        Text    = "Assembly:"
                    },
                    assemblyDropdown = new AssemblyDropdown
                    {
                        Width = 250,
                    },
                    runAllStepsCheckbox = new BasicCheckbox
                    {
                        LabelText    = "Run all steps",
                        LabelPadding = new MarginPadding {
                            Left = 5, Right = 10
                        },
                        AutoSizeAxes = Axes.Y,
                        Width        = 140,
                        Anchor       = Anchor.CentreLeft,
                        Origin       = Anchor.CentreLeft,
                    },
                }
            };

            assemblyDropdown.Current.BindTo(browser.Assembly);
            runAllStepsCheckbox.Current.BindTo(browser.RunAllSteps);
        }