コード例 #1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            MItem         mi   = value as MItem;
            ConverterData data = parameter as ConverterData;

            return(string.Format("{0:n0}", (int)mi[data.Name].Value));
        }
コード例 #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            MItem         mi   = value as MItem;
            ConverterData data = parameter as ConverterData;

            return(((float)mi[data.Name].Value).ToString());
        }
コード例 #3
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            MItem         mi   = value as MItem;
            ConverterData data = parameter as ConverterData;

            //ImageField imgF = mi[fti.Name] as ImageField;
            return(mi[data.Name].ToVisibleValue(data.Template.Metadata));
        }
コード例 #4
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            MItem         mi   = value as MItem;
            ConverterData data = parameter as ConverterData;

            return(mi[data.Name].ToVisibleValue(data.Template.Metadata));
            //EnumField ef = mi[fti.Name] as EnumField;
            //return ef.GetSelectedValue(fti.Metadata as EnumMetadata);
        }