Ejemplo n.º 1
0
 public static CT_Crosses Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Crosses ctObj = new CT_Crosses();
     if (node.Attributes["val"] != null)
         ctObj.val = (ST_Crosses)Enum.Parse(typeof(ST_Crosses), node.Attributes["val"].Value);
     return ctObj;
 }
Ejemplo n.º 2
0
 public CT_Crosses AddNewCrosses()
 {
     this.crossesField = new CT_Crosses();
     return this.crossesField;
 }
Ejemplo n.º 3
0
 private static AxisCrosses toAxisCrosses(CT_Crosses ctCrosses)
 {
     switch (ctCrosses.val)
     {
         case ST_Crosses.autoZero: return AxisCrosses.AutoZero;
         case ST_Crosses.max: return AxisCrosses.Max;
         case ST_Crosses.min: return AxisCrosses.Min;
         default:
             throw new ArgumentException();
     }
 }