public static XElement ToXElement(this PresentationSpaceDim Dim, XName Name)
 {
     if (Dim == null)
     {
         return(new XElement(Name, null));
     }
     else
     {
         XElement xe = new XElement(Name,
                                    new XElement("Width", Dim.Width),
                                    new XElement("Height", Dim.Height));
         return(xe);
     }
 }
 public static PresentationSpaceDim PresentationSpaceDimOrDefault(
     this XElement Elem, XNamespace ns, PresentationSpaceDim Default = null)
 {
     if (Elem == null)
     {
         return(Default);
     }
     else
     {
         var wd = Elem.Element("Width").IntOrDefault(0).Value;
         var ht = Elem.Element("Height").IntOrDefault(0).Value;
         return(new PresentationSpaceDim(ht, wd));
     }
 }
Пример #3
0
 public void Connect(string SessId)
 {
     Ehllapier.Connect(SessId);
     mActiveSessId = SessId;
     mDim          = new PresentationSpaceDim(24, 80);
 }