怎样用委托把list中的值赋值到label上去
List<string> list = new List<string>();
string strTemp = this.sp.ReadTo("\r\n").Replace("\0", "");
int count = 0;
int num = 0;
foreach (Control ctl in this.label1.Parent.Controls)
{
count++;
if (list.Count == 0)
{
if (ctl.Text == "0000000000")
{
list.Add(strTemp);
}
}
}