| 12345678910111213141516171819202122232425 |
- using Muchinfo.MTPClient.Resources;
- using System;
- using System.Windows.Data;
- namespace Muchinfo.MTPClient.Infrastructure.Converters
- {
- public class WarningIsValidConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- string result = string.Empty;
- if (value != null)
- {
- var isValid = (bool)value;
- result = isValid ? Client_Resource.Infrastructure_Yes : Client_Resource.Infrastructure_No;
- }
- return result;
- }
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
- }
|