From 9335d0fd6d9249850ff2a7e40f96b56e63e2d9f8 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 3 Aug 2019 11:52:55 -0400 Subject: [PATCH] Code aesthetics --- .../Libraries/UniversalEditor.UserInterface/MainWindow.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs index ab5d90bf..d7957efe 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs @@ -136,8 +136,7 @@ namespace UniversalEditor.UserInterface public MainWindow() { - UniversalWidgetToolkit.Layouts.BoxLayout layout = new UniversalWidgetToolkit.Layouts.BoxLayout(Orientation.Vertical); - this.Layout = layout; + Layout = new BoxLayout(Orientation.Vertical); this.IconName = "universal-editor"; this.CommandDisplayMode = CommandDisplayMode.Both; @@ -168,6 +167,7 @@ namespace UniversalEditor.UserInterface } dckContainer = new DockingContainer(); dckContainer.SelectionChanged += dckContainer_SelectionChanged; + Controls.Add (dckContainer, new BoxLayout.Constraints(true, true, 0, BoxLayout.PackType.End)); tbsDocumentTabs = new TabContainer(); @@ -181,9 +181,6 @@ namespace UniversalEditor.UserInterface AddPanel("Error List", DockingItemPlacement.Bottom, pnlErrorList); - - this.Controls.Add(dckContainer, new UniversalWidgetToolkit.Layouts.BoxLayout.Constraints(true, true, 0, UniversalWidgetToolkit.Layouts.BoxLayout.PackType.End)); - this.Bounds = new Rectangle(0, 0, 600, 400); this.Size = new Dimension2D(800, 600); this.Text = "Universal Editor";