| 123456789101112131415161718192021222324 | using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Data;namespace Venus_Themes.Converters{    public class BoolToPath : IValueConverter    {        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)        {            if (value == null) return "Pack://application:,,,/Venus_Themes;Component/Resources/pump2.png";            return (bool)value ? "Pack://application:,,,/Venus_Themes;Component/Resources/pump2.png" : "Pack://application:,,,/Venus_Themes;Component/Resources/pump2_gray.png";        }        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)        {            throw new NotImplementedException();        }    }}
 |