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/GUI/Control.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ShiftOS.Frontend/GUI/Control.cs') diff --git a/ShiftOS.Frontend/GUI/Control.cs b/ShiftOS.Frontend/GUI/Control.cs index c16792b..f253903 100644 --- a/ShiftOS.Frontend/GUI/Control.cs +++ b/ShiftOS.Frontend/GUI/Control.cs @@ -38,6 +38,19 @@ namespace ShiftOS.Frontend.GUI private int _mouseY = 0; private bool _captureMouse = false; + public void BringToFront() + { + if(_parent != null) + { + _parent._children.Remove(this); + _parent.AddControl(this); + } + else + { + UIManager.BringToFront(this); + } + } + public bool RequiresPaint { get -- cgit v1.2.3