Esempio n. 1
0
 public CT_Orientation AddNewOrientation()
 {
     this.orientationField = new CT_Orientation();
     return this.orientationField;
 }
Esempio n. 2
0
 public static CT_Orientation Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Orientation ctObj = new CT_Orientation();
     if (node.Attributes["val"] != null)
         ctObj.val = (ST_Orientation)Enum.Parse(typeof(ST_Orientation), node.Attributes["val"].Value);
     return ctObj;
 }
Esempio n. 3
0
 private static AxisOrientation toAxisOrientation(CT_Orientation ctOrientation)
 {
     switch (ctOrientation.val)
     {
         case ST_Orientation.minMax: return AxisOrientation.MinToMax;
         case ST_Orientation.maxMin: return AxisOrientation.MaxToMin;
         default:
             throw new ArgumentException();
     }
 }