这是 UpdateGUI() 的一部分:
DisplayOptions choice = (DisplayOptions)comboBox1.SelectedIndex;
seatMngr.GetSeatInfoStrings(choice, out strSeatInfoStrings);
listBox1.Items.Clear();
listBox1.Items.AddRange(strSeatInfoStrings);
编译器抱怨这一行(以及最后一行的参数):
seatMngr.GetSeatInfoStrings(choice, out strSeatInfoStrings);
我要做的是获取一个数组(strSeatInfoStrings)并将其放入列表框中。
有任何想法吗?