From 0af9c840293bff1a0ad699fdd9f3a549294feef9 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 6 Aug 2017 20:03:10 -0400 Subject: wip shifter and infobox prison --- ShiftOS.Frontend/GUI/Control.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ShiftOS.Frontend/GUI') diff --git a/ShiftOS.Frontend/GUI/Control.cs b/ShiftOS.Frontend/GUI/Control.cs index 6941b7b..43f7931 100644 --- a/ShiftOS.Frontend/GUI/Control.cs +++ b/ShiftOS.Frontend/GUI/Control.cs @@ -369,6 +369,16 @@ namespace ShiftOS.Frontend.GUI Invalidate(); } + public void RemoveControl(Control ctrl) + { + if(_children.Contains(ctrl)) + { + _children.Remove(ctrl); + ctrl._parent = null; + Invalidate(); + } + } + public Point PointToLocal(int x, int y) { return new GUI.Point(x - _x, y - _y); -- cgit v1.2.3