markus / KCOM / Common / Converter / MarkupDataToConverter.cs @ f87dfb18
이력 | 보기 | 이력해설 | 다운로드 (877 Bytes)
1 | 5529d2a2 | humkyung | using MarkupToPDF.Controls.Parsing; |
---|---|---|---|
2 | using System; |
||
3 | 787a4489 | KangIngu | 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 | 5529d2a2 | humkyung | return MarkupParser.GetMemo(value.ToString()); |
20 | 787a4489 | KangIngu | } |
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 | } |