findsoxform.cs

来自「visual c++编写关于声音分析的 傅立叶变换.超牛」· CS 代码 · 共 42 行

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

namespace SteganoTape {
	public partial class FindSoxForm : Form {

		public String SoxPath
		{
			get
			{
				return txtPath.Text;
			}
		}

		public FindSoxForm()
		{
			InitializeComponent();
		}

		private void btnBrowse_Click(object sender, EventArgs e)
		{
			OpenFileDialog dlg = new OpenFileDialog();
			dlg.FileName = "sox.exe";
			dlg.Filter = "sox.exe|sox.exe";
			if (dlg.ShowDialog() == DialogResult.OK) {
				txtPath.Text = dlg.FileName;
			}
		}

		private void FindSoXForm_FormClosing(object sender, FormClosingEventArgs e)
		{
			if (this.DialogResult == DialogResult.Cancel) {
				txtPath.Text = String.Empty;
			}
		}
	}
}

⌨️ 快捷键说明

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