Ejemplo n.º 1
0
 public override void Play()
 {
     for (int i = 0; i < this.DisplayTimes; i++)
     {
         var pictureBoxes = this.DisplayImgs();
         PictureBoxOperator.AddPictureBox(pictureBoxes);
         Thread.Sleep(1000 * this.IntervalTime);
         PictureBoxOperator.DeletePictureBox(pictureBoxes);
     }
 }
Ejemplo n.º 2
0
        public override void Play()
        {
            for (int i = 0; i < this.DisImgCounts; i++)
            {
                int height = 0;
                var pb     = this.DisplayImgs(i, ref height);
                PictureBoxOperator.AddPictureBox(pb);

                for (int step = 0; step < PanelSize.Width - 11; step = step + 10)
                {
                    Point location = new Point(step, height);
                    PictureBoxOperator.MoveLocation(location, pb[0]);
                    WritingOutput.ShowMessage($"坐标:[{location.X},{location.Y}]");
                    Thread.Sleep(50 * this.IntervalTime);
                }
                PictureBoxOperator.DeletePictureBox(pb);
            }
        }