private bool isXMLDefined() { bool hasXML = false; if (DlgProp != null) hasXML = DlgProp.IsXMLDefined; return hasXML; }