/// <summary>
        /// <para>Renombrar</para>
        /// </summary>
        /// <param name="rtItem"></param>
        /// <param name="define"></param>
        /// <returns></returns>
        private bool ProcessRename(Rect rtItem, GlobalDefine define)        // Renombrar
        {
            if (define == null || define.Nombre != editingDefine)
            {
                return(false);
            }

            bool isInvalid = false;

            if (GlobalDefine.IsValidName(editingName) == false)
            {
                EditorGUILayout.HelpBox(StringsUEME.NOMBRE_INVALIDO_MDEFINE, MessageType.Error);
                isInvalid = true;
            }
            else if (editingName != define.Nombre && definesEditing.IsDefined(editingName))
            {
                EditorGUILayout.HelpBox(StringsUEME.DEFINE_EXISTE_MDEFINE, MessageType.Error);
                isInvalid = true;
            }

            if ((Event.current.type == EventType.MouseDown && !UtilEvent.IsClicked(rtItem)) ||
                (Event.current.type == EventType.KeyUp && Event.current.keyCode == KeyCode.Return))
            {
                if (isInvalid)
                {
                    EndRename();
                }
                else
                {
                    doRename = true;
                }

                Event.current.Use();
                return(true);
            }

            return(false);
        }
        /// <summary>
        /// <para>Procesos mouse</para>
        /// </summary>
        /// <param name="rtItem"></param>
        /// <param name="define"></param>
        /// <returns></returns>
        private bool ProcessMouse(Rect rtItem, GlobalDefine define)// Procesos mouse
        {
            if (define == null || UtilEvent.IsClicked(rtItem) == false)
            {
                return(false);
            }

            if (string.IsNullOrEmpty(editingDefine) == false)
            {
                EndRename();
            }
            if (IsSelectedDefine(define))
            {
                SetSelectedDefine(null);
            }
            else
            {
                SetSelectedDefine(define);
            }

            Event.current.Use();
            return(true);
        }