|
34
|
1 |
using System; |
|
|
2 |
using System.Net; |
|
|
3 |
using System.Windows; |
|
|
4 |
using System.Windows.Controls; |
|
|
5 |
using System.Windows.Documents; |
|
|
6 |
using System.Windows.Ink; |
|
|
7 |
using System.Windows.Input; |
|
|
8 |
using System.Windows.Media; |
|
|
9 |
using System.Windows.Media.Animation; |
|
|
10 |
using System.Windows.Shapes; |
|
35
|
11 |
using System.Xml.Linq; |
|
|
12 |
namespace Iri.Modernisation.Data.LDTClass |
|
34
|
13 |
{ |
|
|
14 |
public class IRIMeta |
|
|
15 |
{ |
|
35
|
16 |
public String Name { get; set; } |
|
|
17 |
public String Content { get; set; } |
|
|
18 |
public IRIMeta() |
|
|
19 |
{ |
|
|
20 |
Name = String.Empty; |
|
|
21 |
Content = String.Empty; |
|
|
22 |
} |
|
|
23 |
public IRIMeta(XElement elem) |
|
|
24 |
{ |
|
|
25 |
Name = elem.Attribute("name").Value; |
|
|
26 |
Content = elem.Attribute("content").Value; |
|
|
27 |
} |
|
|
28 |
|
|
|
29 |
public XElement XML |
|
|
30 |
{ |
|
|
31 |
get |
|
|
32 |
{ |
|
|
33 |
return new XElement("meta", |
|
|
34 |
new XAttribute("name", Name), |
|
|
35 |
new XAttribute("content",Content)); |
|
|
36 |
} |
|
|
37 |
} |
|
34
|
38 |
|
|
|
39 |
} |
|
|
40 |
} |