private void UpdateFingeringDisplay(object sender, EventArgs e)
{
for (int i = 0; i < r_instrument.Length; i++) {
r_instrument[i].BorderThickness = new Thickness(0, 0, 7, 0);
tb_instrument[i].FontSize = 40;
tb_instrument[i].FontWeight = FontWeights.SemiBold;
tb_instrument[i].TextAlignment = TextAlignment.Right;
}
// instrument is violin
if (instrument == 41) {
for (int i = 0; i < r_instrument.Length; i++) {
try {
if (score.s_CurrentFingering.Length == 4)
tb_instrument[i].Text = Convert.ToString(score.s_CurrentFingering[i]);
} catch (Exception ex) { }
}
}
else if (instrument >= 25 && instrument <= 32) {
for (int i = 0; i < r_instrument.Length; i++) {
try {
if (score.s_CurrentFingering.Length == 6)
{
//debugConsole.AddText(score.s_CurrentFingering); //commented out due to massive performance hit
int temp = System.Convert.ToInt32(score.s_CurrentFingering[5 - i] - 'A');
tb_instrument[i].Text = Convert.ToString(temp);
}
} catch (Exception ex) { }
}
}
}