Пример #1
0
        public object Format(object val)
        {
            int       ival   = (int)val;
            IconValue result = new IconValue()
            {
                RealValue = ival,
                IconFile  = ival % 10000,
                IconType  = (IconType)(ival / 10000)
            };

            return(result);
        }
Пример #2
0
        public object Format(object val)
        {
            int ival = (int)val;
            IconValue result = new IconValue()
            {
                RealValue = ival,
                IconFile = ival % 10000,
                IconType = (IconType)(ival / 10000)
            };

            return result;
        }