--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/Iri.Modernisation.Data/Ldt/LDTm.cs Wed Nov 18 15:30:31 2009 +0100
@@ -0,0 +1,66 @@
+using System;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+using System.Xml.Linq;
+namespace Iri.Modernisation.Data.LDTClass
+{
+ /// <summary>
+ /// Balise m
+ /// </summary>
+ public class LDTm
+ {
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public String Ref { get; set; }
+
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public String T { get; set; }
+
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public int Id { get; set; }
+
+ /// <summary>
+ /// Attribut
+ /// </summary>
+ public long C { get; set; }
+
+ /// <summary>
+ /// Elements
+ /// </summary>
+ public String Content { get; set; }
+ public LDTm(XElement e)
+ {
+ Ref = e.Attribute("ref").Value;
+ T = e.Attribute("t").Value;
+ Id = int.Parse(e.Attribute("id").Value);
+ C = long.Parse(e.Attribute("c").Value);
+ Content = e.Element("content").Value;
+ }
+
+ public XElement XML
+ {
+ get
+ {
+ return new XElement("m",
+ new XAttribute("ref",Ref),
+ new XAttribute("t",T),
+ new XAttribute("id",Id),
+ new XAttribute("c",C),
+ new XElement("content",Content)
+ );
+ }
+ }
+ }
+}