frmSlide.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace PictureManage
{
public partial class frmSlide : Form
{
public frmSlide()
{
InitializeComponent();
}
public string Ppath;
string FilePath;
FileSystemInfo[] FSInfo;
DirectoryInfo DInfo;
int i = 0;
private void frmSlide_Load(object sender, EventArgs e)
{
this.Text = Ppath;
DInfo = new DirectoryInfo(Ppath);
FSInfo = DInfo.GetFileSystemInfos();
if (Ppath.Length <=4)
{
FilePath = Ppath;
}
else
{
FilePath = Ppath + "\\";
}
}
private void GetPic()
{
if(i<FSInfo.Length)
{
string FileType = FSInfo[i].ToString().Substring(FSInfo[i].ToString().LastIndexOf(".") + 1, (FSInfo[i].ToString().Length - FSInfo[i].ToString().LastIndexOf(".") - 1));
FileType = FileType.ToLower();
if (FileType == "jpg" || FileType == "png" || FileType == "bmp" || FileType == "gif" || FileType == "jpeg")
{
pictureBox1.Image = Image.FromFile(FilePath + FSInfo[i].ToString());
}
}
}
private void timer1_Tick(object sender, EventArgs e)
{
GetPic();
i++;
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
if (toolStripButton1.Text == "暂停")
{
toolStripButton1.Text = "继续";
后面还有 23 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。