private void show_expert() { int ren = 1; if (comboBox1.SelectedIndex.ToString() == "0" || comboBox1.SelectedIndex.ToString() == "1") { ren = 1; } if (comboBox1.SelectedIndex.ToString() == "2") { ren = 2; } if (comboBox1.SelectedIndex.ToString() == "3") { ren = 3; } if (comboBox1.SelectedIndex.ToString() == "4") { ren = 4; } while (!Stop) { ArrayList Origin = RocTools.ArrayListCopy(OriginPeopleAl); ArrayList arrayList = RocRandom.MyRandom(Origin); listBox1.Items.Clear(); for (int i = 0; i < ren; i++) { listBox1.Items.Add(arrayList[i].ToString()); } Application.DoEvents(); } }
private void Scroll() { label4.Text = ""; while (!Stop) { ArrayList Origin = RocTools.File2Array(@"d:\yaohao\data\fang.txt"); ArrayList arrayList = RocRandom.MyRandom(Origin); for (int i = 0; i < arrayList.Count; i++) { label4.Text = arrayList[i].ToString(); } Application.DoEvents(); } }