protected override string GetValue()
        {
            if (m_codePoints == null)
            {
                return("");
            }

            if (string.IsNullOrEmpty(m_icon))
            {
                return("");
            }

            string codePoint;

            return(m_codePoints.TryGetCode(m_icon, out codePoint)? codePoint: "");
        }
Example #2
0
        public void UpdateDisplay()
        {
            if (m_codePoints == null)
            {
                return;
            }

            if (string.IsNullOrEmpty(m_icon))
            {
                this.driven.value = "";
                return;
            }

            string codePoint;

            if (m_codePoints.TryGetCode(m_icon, out codePoint))
            {
                this.driven.value = codePoint;
                return;
            }
        }