Exemple #1
0
 private void scroll()
 {
     while (!Stop)
     {
         ArrayList Origin  = RocTools.ArrayListCopy(OriginPeopleAl);
         ArrayList Current = RocRandom.MyRandom(Origin);
         label2.Text = Current[0].ToString();
         Thread.Sleep(50);
         Application.DoEvents();
     }
 }
Exemple #2
0
        private void scroll()
        {
            string[] countStr = textBox1.Text.Split("\n".ToCharArray());
            int      count    = 0;

            count = int.Parse(countStr[times - 1]);
            while (!Stop)
            {
                ArrayList Origin  = RocTools.ArrayListCopy(OriginPeopleAl);
                ArrayList Current = RocRandom.MyRandom(Origin);
                listBox2.Items.Clear();
                for (int i = 0; i < count; i++)
                {
                    listBox2.Items.Add(Current[i].ToString());
                }
                Thread.Sleep(50);
                Application.DoEvents();
            }
        }