diff options
| author | Michael <[email protected]> | 2017-08-06 20:03:10 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-08-06 20:03:10 -0400 |
| commit | 0af9c840293bff1a0ad699fdd9f3a549294feef9 (patch) | |
| tree | e3375faf95fa454c602a988dd9de1513f5f39354 /ShiftOS.Frontend/GUI | |
| parent | 97a5a97370bc8f4d721791457d551c6bd2b0b67c (diff) | |
| download | shiftos_thereturn-0af9c840293bff1a0ad699fdd9f3a549294feef9.tar.gz shiftos_thereturn-0af9c840293bff1a0ad699fdd9f3a549294feef9.tar.bz2 shiftos_thereturn-0af9c840293bff1a0ad699fdd9f3a549294feef9.zip | |
wip shifter and infobox prison
Diffstat (limited to 'ShiftOS.Frontend/GUI')
| -rw-r--r-- | ShiftOS.Frontend/GUI/Control.cs | 10 |
1 files changed, 10 insertions, 0 deletions
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); |
