Form1.cs

(开头部分) 6KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 软著工具
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog dialog = new FolderBrowserDialog();
            dialog.SelectedPath = "D:\\workspace\\TBMS\\tbms";
            if (dialog.ShowDialog() == DialogResult.OK)
            {
                DirectoryInfo di = new DirectoryInfo(dialog.SelectedPath);
                checkedListBox1.Items.AddRange(di.GetDirectories());
            }

        }

        private void button2_Click(object sender, EventArgs e)
        {
            foreach (var one in checkedListBox1.CheckedItems)
            {
                if (!checkedListBox2.Items.Contains(one))
                {
                    checkedListBox2.Items.Add(one);
                }
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            object[] checkedItems = new object[checkedListBox2.CheckedItems.Count];
            checkedListBox2.CheckedItems.CopyTo(checkedItems, 0);

            foreach (var one in checkedItems)
            {
                checkedListBox2.Items.Remove(one);
            }
        }

        private void button4_Click(object sender, EventArgs e)
        {
            checkedListBox2.Items.Clear();
            richTextBox1.Clear();
        }
后面还有 125 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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