日期:2014-05-18 浏览次数:21492 次
namespace CarouselManager { public static class testlabel { public static MyLabel.MyLabelBelt[] LabelBelt = new MyLabel.MyLabelBelt[1000]; } public partial class View_Belt_Dyna { public View_Belt_Dyna() { InitializeComponent(); for (int i = 0; i < 1000; i++) { testlabel.LabelBelt[i] = new MyLabel.MyLabelBelt(); } } private void simpleButton_Init_Click(object sender, EventArgs e) { for (int ii = 0; ii < 1000; ii++) { if (testlabel.LabelBelt[ii].Area.Trim() == "仓库1号") { ......... } } } } }