Form1.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;
// 下载于www.51aspx.com
namespace WindowsFormsApplication1
{
    public partial class mainForm : Form
    {
        public mainForm()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //FolderBrowserDialog
            
            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                textBox1.Text=folderBrowserDialog1.SelectedPath;
                numPics.Text = string.Format("{0}张", Directory.GetFiles(textBox1.Text,"*.jpg").Length);
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                textBox2.Text = folderBrowserDialog1.SelectedPath;
            }
        }

        private void radioButton3_CheckedChanged(object sender, EventArgs e)
        {
            label6.Text = "宽(px)";

            label7.Visible = false;
            textBox4.Visible = false;
        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            label6.Text = "高(px)";

            label7.Visible = false;
            textBox4.Visible = false;
        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            label6.Text = "百分比(%)";
            label7.Visible = false;
            textBox4.Visible = false;
        }

后面还有 31 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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