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."); } }
public KicadLibPinOrientation(PinOrentation fill) { Value = fill; }