CmisSync.UIConverter.TranmissionPositionToStringConverter.Convert C# (CSharp) Method

Convert() public method

public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
return object
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
            if (value != null) {
                if ((long)value == 0) {
                    return string.Empty;
                } else {
                    return string.Format("{0}/", CmisSync.Lib.Utils.FormatSize((long)value));
                }
            } else {
                return string.Empty;
            }
        }
TranmissionPositionToStringConverter