1234567891011121314151617181920 |
- using System;
- using System.Globalization;
- using System.Windows.Data;
- namespace DeceiveBarcodeManagement.Converter
- {
- public class ElectricMeterTopConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- int ColumnIndex = System.Convert.ToInt32(value);
- return (double)((ColumnIndex - 1) * 170 + 30);
- }
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
- }
|