private BarlineType GetBarlineType(string value) { BarlineType rval = BarlineType.regular; switch (value) { case "regular": rval = BarlineType.regular; break; case "dotted": rval = BarlineType.dotted; break; case "dashed": rval = BarlineType.dashed; break; case "heavy": rval = BarlineType.heavy; break; case "light-light": rval = BarlineType.lightLight; break; case "light-heavy": rval = BarlineType.lightHeavy; break; case "heavy-light": rval = BarlineType.heavyLight; break; case "heavy-heavy": rval = BarlineType.heavyHeavy; break; case "tick": rval = BarlineType.tick; break; case "short": rval = BarlineType._short; break; case "none": rval = BarlineType.none; break; default: M.ThrowError("Error: unknown barline type"); break; } return(rval); }
public Barline(Voice voice, BarlineType barlineType) : base(voice) { BarlineType = barlineType; }