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