📄 form1.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -