CGUIDialogBoxBase: avoid duplicate code