markus / KCOM / Common / Converter / MarkupDataToConverter.cs @ 53880c83
이력 | 보기 | 이력해설 | 다운로드 (963 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Globalization; |
4 |
using System.Linq; |
5 |
using System.Text; |
6 |
using System.Windows.Data; |
7 |
|
8 |
namespace KCOM.Common.Converter |
9 |
{ |
10 |
public class MarkupDataToConverter : IValueConverter |
11 |
{ |
12 |
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
13 |
{ |
14 |
if (value != null) |
15 |
{ |
16 |
if (value is string) |
17 |
{ |
18 |
MarkupToPDF.Controls.Parsing.LayerControl temp = new MarkupToPDF.Controls.Parsing.LayerControl(); |
19 |
return temp.markupParse_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 |
} |