123456789101112131415161718192021222324 |
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Windows.Data;
- namespace Aitex.Sorter.UI.Converter
- {
- public class SlotToIndexConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- var slot = (int)value;
- return (slot + 1).ToString("00");
- }
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
- }
|