frmSplit.cs

(开头部分) 3KB

这里只显示每个文件的开头 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.Collections;
//Download by http://www.codefans.net
namespace FileManage
{
    public partial class frmSplit : Form
    {
        //实例化公共类对象
        CommonClass.BaseClass baseclass = new FileManage.CommonClass.BaseClass();

        public frmSplit()
        {
            InitializeComponent();
        }

        private void frmSplit_Load(object sender, EventArgs e)
        {
            timer1.Start();//启动计时器
        }

        //选择要分割的文件
        private void btnSFile_Click(object sender, EventArgs e)
        {
            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                txtFile.Text = openFileDialog.FileName;
            }
        }

        //执行文件分割操作
        private void btnSplit_Click(object sender, EventArgs e)
        {
            try
            {
                if (txtLength.Text == "")
                {
                    MessageBox.Show("请输入要分割的文件大小!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    txtLength.Focus();
                }
                else if (cboxUnit.Text == "")
                {
                    MessageBox.Show("请选择要分割的文件单位!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    cboxUnit.Focus();
                }
                else
                {
                    baseclass.SplitFile(cboxUnit.Text, Convert.ToInt32(txtLength.Text.Trim()), txtPath.Text, txtFile.Text, progressBar);
                }
            }
            catch { }
        }

        //选择分割后的文件存放路径
        private void btnSPath_Click(object sender, EventArgs e)
后面还有 58 行代码,解锁后查看完整代码

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

AI 解读

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

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