| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using Muchinfo.MTPClient.Resources;
- using System;
- using System.Windows.Data;
- namespace Muchinfo.MTPClient.Infrastructure.Converters
- {
- public class BankInOutConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- string result = string.Empty;
- if (value != null)
- {
- int srt = (int)value;
- switch (srt)
- {
- case 1:
- result = Client_Resource.Infrastructure_Pass;
- break;
- case 2:
- result = Client_Resource.Infrastructure_Refuse;
- break;
- case 3:
- result = Client_Resource.Infrastructure_Pending;
- break;
- case 4:
- result = Client_Resource.Infrastructure_Success;
- break;
- case 5:
- result = Client_Resource.Infrastructure_Failure;
- break;
- case 6:
- result = Client_Resource.Infrastructure_Processing;
- break;
- }
- }
- return result;
- }
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
- }
|