BattlelogMobile.Client.Converter.IntegerVisibilityConverter.Convert C# (CSharp) Method

Convert() public method

All values greater than zero (0) are treated as Visible, any other Collapsed
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)
        {
            int intValue = int.Parse(value.ToString());
            return intValue > 0 ? Visibility.Visible : Visibility.Collapsed;
        }
IntegerVisibilityConverter