diff options
Diffstat (limited to 'ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs')
| -rw-r--r-- | ShiftOS.Frontend/GraphicsSubsystem/UIManager.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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()) |
