source: trunk/CrypPlugins/KeySearcher/P2P/Helper/WidthConverter.cs @ 2286

Last change on this file since 2286 was 2286, checked in by nolte, 11 years ago

Missing WidthConverter added

File size: 636 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Data;
6
7namespace KeySearcher.P2P.Helper
8{
9    class WidthConverter : IValueConverter
10    {
11        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
12        {
13            double x = (double) value;
14
15            return x - 200;
16        }
17
18        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
19        {
20            throw new NotImplementedException();
21        }
22    }
23}
Note: See TracBrowser for help on using the repository browser.