Form1.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// 下载于www.51aspx.com
using System;
using System.Collections;
using System.Management;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Threading;
namespace yiditu.win
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
//System.Management.ManagementObjectSearcher
}
string path = string.Empty;//路径
string picFix = string.Empty;//图片前缀
private void button1_Click(object sender, EventArgs e)
{
FolderBrowserDialog openfolder = new FolderBrowserDialog();
openfolder.ShowDialog();
path = openfolder.SelectedPath;
richTextBox1.Text = path;
}
private void button2_Click(object sender, EventArgs e)
{
//DataSet ds = new DataSet();
//ds.ReadXml("E:\\project\\WindowsApplication1\\WindowsApplication1\\web.config");
//return;
decimal picwidth = 0;//宽度
decimal picheight = 0;//高度
int count = 0;
try
{
picwidth = Convert.ToDecimal(textBox2.Text.ToString());
picheight = Convert.ToDecimal(textBox1.Text.ToString());
picFix = textBox3.Text;
if (picFix.Trim() == "")
{
MessageBox.Show("处理的图片没有前缀名!","提示");
return;
}
if (path == string.Empty || path.Trim() == "")
{
MessageBox.Show("请选择路径!", "提示");
return;
}
}
catch
{
后面还有 177 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。