Form1.cs

(开头部分) 11KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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.Threading;
using System.IO;
using System.Text.RegularExpressions;
using System.Diagnostics;
using Microsoft.Win32;
namespace PointSpread3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }


        //源文件夹选择
        private void buttonSourceFolder_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog path = new FolderBrowserDialog();
            path.ShowDialog();
            textBoxSourceFolder.Text = path.SelectedPath;
        }

        //目标文件夹选择
        private void buttonDestinationFolder_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog path = new FolderBrowserDialog();
            path.ShowDialog();
            textBoxDestinationFolder.Text = path.SelectedPath;
        }

        //线程里运行
        private void buttonRun_Click(object sender, EventArgs e)
        {
           
            Thread th1 = new Thread(new ThreadStart(main));
            Control.CheckForIllegalCrossThreadCalls = false;

            //开始
            th1.Start();
        }


        //方法调用
        private void main()
        {
            string dir = textBoxSourceFolder.Text;
            ListFiles(new DirectoryInfo(dir));
            MessageBox.Show("已完成", "提示");

            //结束线程
           main2();
后面还有 287 行代码,购买后查看完整代码

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

AI 解读 AI

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

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