Никита
6 years ago
5 changed files with 53 additions and 9 deletions
@ -0,0 +1,23 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Globalization; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Data; |
|||
|
|||
namespace Signal_Generator |
|||
{ |
|||
class StringDoubleConverter : IValueConverter |
|||
{ |
|||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|||
{ |
|||
return ((double)value).ToString(); |
|||
} |
|||
|
|||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) |
|||
{ |
|||
return double.Parse((string)value); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue