form1.cs

来自「LZW压缩」· CS 代码 · 共 52 行

CS
52
字号
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LZW
{
    public partial class FrmLZW : Form
    {
        public FrmLZW()
        {
            InitializeComponent();
        }

        private void btnOpen1_Click(object sender, EventArgs e)
        {
            ShowOpenDialog(1);
        }

        private void ShowOpenDialog(int tempValue)
        {
            openFileDialog1.ShowDialog();
            if (tempValue == 1)
            {
                this.txtSourceFile.Text = openFileDialog1.FileName;
            }
            if (tempValue == 2)
            {
                this.txtFile.Text = openFileDialog1.FileName;
            }
        }

        private void btnOpen2_Click(object sender, EventArgs e)
        {
            ShowOpenDialog(2);
        }

        private void btnY_Click(object sender, EventArgs e)
        {
            //开始压缩
           
        }

        private void btnJ_Click(object sender, EventArgs e)
        {
            //开始解压
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?