DocToDocx/Form1.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using System.Diagnostics;
using System.Collections;
using System.Runtime.InteropServices;
using Aspose.Words;
namespace DocToDocx
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Turn_Button.Enabled = false;
}
private void Select_Floder_Click(object sender, EventArgs e)
{
#region 这里使用的是和拖放操作差不多的代码,防止出问题还是多写一遍吧
File_ShowView.Items.Clear();
Select_Floder_Window.Description = "请选择要转换的文件目录";
DialogResult Select_Status = Select_Floder_Window.ShowDialog();
if (Select_Status == DialogResult.OK)
{
ArrayList Select_Names = new ShowFiles().GetFileNames(Select_Floder_Window.SelectedPath);
if (Select_Names != null)
{
foreach (string Name in Select_Names)
{
File_ShowView.Items.Add(Name);
}
Turn_Button.Enabled = true;
}
else
{
Debug.WriteLine("这文件夹里面怎么啥也没有...");
File_ShowView.Items.Clear();//新拖入的文件夹没有任何文件,则进行清空操作
Turn_Button.Enabled = false;
}
}
else
{
Turn_Button.Enabled = false;
}
#endregion
}
private void Form1_DragDrop(object sender, DragEventArgs e)
{
if(e.Data.GetDataPresent(DataFormats.FileDrop))
{
后面还有 112 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。