Remove anonymous blocks

This commit is contained in:
John Lewin 2017-08-26 19:19:35 +03:00
parent cc2967751e
commit 060bb79daa

View file

@ -56,8 +56,6 @@ namespace MatterHackers.MatterControl
this.BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;
this.Padding = new BorderDouble(5, 0);
{
{
var topBarControls = new FlowLayoutWidget(FlowDirection.LeftToRight);
topBarControls.HAnchor |= HAnchor.Left;
@ -96,9 +94,7 @@ namespace MatterHackers.MatterControl
topBarControls.AddChild(autoUppercase);
this.AddChild(topBarControls);
}
{
FlowLayoutWidget leftToRight = new FlowLayoutWidget();
leftToRight.AnchorAll();
@ -115,7 +111,7 @@ namespace MatterHackers.MatterControl
leftToRight.AddChild(new TextScrollBar(textScrollWidget, 15));
this.AddChild(leftToRight);
}
var manualEntryLayout = new FlowLayoutWidget(FlowDirection.LeftToRight)
{
@ -209,7 +205,6 @@ namespace MatterHackers.MatterControl
bottomRowContainer.AddChild(new HorizontalSpacer());
this.AddChild(bottomRowContainer);
}
this.AnchorAll();
}