using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Forms; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using Microsoft.VisualBasic.Devices;
privatevoidP_Click(object sender, RoutedEventArgs e) { Output.Text = "初始化.."; string path = Bin.Text; string[] files=newstring[10000]; string name = Name.Text; int i = 0; Output.Text = "初始化变量成功";
DirectoryInfo folder = new DirectoryInfo(@path); while (i < folder.GetFiles("*.jpg").Count()) { files[i] = folder.GetFiles("*.jpg")[i].Name; i++; } Output.Text = "文件获取成功,共"+i+"个"; int s = 0; while (s <i) {
评论加载中