public static ToneNameEnum ToToneName(this ToneNameData1 tone) { return((ToneNameEnum)(tone.ToInt() - ToneNameData1.BaseValue.ToInt())); }
public CheckBox GetChordScaleBox(ToneNameData1 d1) { var val = (int)d1; return ChordScaleBoxes.ElementAtOrDefault(val - ((int)ToneNameData1.BaseValue)); }