これを聞くのは嫌いですが、どこが間違っているのですか?
public void foo(object sender, EventArgs e)
{
List<Label> exerciseLabels = new List<Label>();
string tempExercise = exerciseTextBox.Text;
int numExercises = 0;
day[tempDay].addExercise(numExercises, tempExercise);
exerciseLabels.Add(new Label());
exerciseLabels[1].Text = string.Format("{0}. {1}", numExercises + 1, tempExercise);
}
範囲外の議論を受けています。
前もって感謝します。