日期:2014-05-18 浏览次数:20885 次
for (int i = 0; i < 8; i++) { X = SX; for (int j = 0; j < 6; j++) { System.Threading.Thread.Sleep(30); if (((i == 2) && (j == 2 || j == 3 || j == 4 || j == 5))||((i==5)&&(j==0||j==1||j==2||j==3))) { } else { PictureBox pb = new PictureBox(); pb.Size = new System.Drawing.Size(25, 33); pb.Image = Image.FromFile(@"e:\staff\" + countFlag.ToString() + ".jpg"); pb.Location = new Point(X, Y); pb.BringToFront(); this.Controls.Add(pb); countFlag += 1; // } X += horizontalCrossing + hSep; } Y += verticalCrossing + ySep; }