From e92af1bc7fe5cd5860206061f4ff261b3339cc51 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 13 Jul 2017 08:40:47 -0400 Subject: SidePanel system, system status, crapton of other neat things --- ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ShiftOS.Frontend/GraphicsSubsystem') diff --git a/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs b/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs index 942b8b6..165944e 100644 --- a/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs +++ b/ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs @@ -19,6 +19,12 @@ namespace ShiftOS.Frontend.GraphicsSubsystem public static System.Drawing.Size Viewport { get; set; } public static GUI.Control FocusedControl = null; + public static void BringToFront(GUI.Control ctrl) + { + topLevels.Remove(ctrl); + topLevels.Add(ctrl); + } + public static void LayoutUpdate() { foreach (var toplevel in topLevels.ToArray()) -- cgit v1.2.3