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));
        }
        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());
        }
        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));
        }
        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);
        }