markus / KCOM / Common / Converter / MarkupDataToConverter.cs @ a6fbd8a6
이력 | 보기 | 이력해설 | 다운로드 (877 Bytes)
1 |
using MarkupToPDF.Controls.Parsing; |
---|---|
2 |
using System; |
3 |
using System.Collections.Generic; |
4 |
using System.Globalization; |
5 |
using System.Linq; |
6 |
using System.Text; |
7 |
using System.Windows.Data; |
8 |
|
9 |
namespace KCOM.Common.Converter |
10 |
{ |
11 |
public class MarkupDataToConverter : IValueConverter |
12 |
{ |
13 |
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
14 |
{ |
15 |
if (value != null) |
16 |
{ |
17 |
if (value is string) |
18 |
{ |
19 |
return MarkupParser.GetMemo(value.ToString()); |
20 |
} |
21 |
} |
22 |
else |
23 |
{ |
24 |
return ""; |
25 |
} |
26 |
return null; |
27 |
} |
28 |
|
29 |
|
30 |
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) |
31 |
{ |
32 |
throw new NotImplementedException(); |
33 |
} |
34 |
} |
35 |
} |