public virtual void Dispose() { if (GuiControl != null) { GuiControl.Dispose(); GuiControl = null; } }