Ejemplo n.º 1
0
        public void Parse(String txt)
        {
            switch (txt)
            {
            case "U":
            case "Up":
                Value = PinOrentation.Up;
                break;

            case "Down":
            case "D":
                Value = PinOrentation.Down;
                break;

            case "Left":
            case "L":
                Value = PinOrentation.Left;
                break;

            case "Right":
            case "R":
                Value = PinOrentation.Right;
                break;

            default:
                throw new Exception("KicadPinOrientation parse error.");
            }
        }
Ejemplo n.º 2
0
 public KicadLibPinOrientation(PinOrentation fill)
 {
     Value = fill;
 }