03-图像操作/图片自动播放/PicPlay/Form2.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Collections;
namespace PicPlay
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }
        public ArrayList fsi=new ArrayList();
        public int mytimer;
        public string picPath;
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            timer1.Stop();
            this.Close();
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {

        }

        private void Form2_Load(object sender, EventArgs e)
        {
            timer1.Interval = mytimer;
            timer1.Start();
        }

        int MM = 0;
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (MM <fsi.Count)
            {
                if (picPath.Length == 3)
                {
                    pictureBox2.Image = Image.FromFile(picPath +fsi[MM].ToString());
                }
                else
                {
                    pictureBox2.Image = Image.FromFile(picPath + "\\" + fsi[MM].ToString());
                }
            }
            MM++;
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。