📄 录音.cs
字号:
using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace SmartAnswerCall
{
public partial class 录音 : Form
{
public 录音()
{
InitializeComponent();
}
private void menu录音_Click(object sender, EventArgs e)
{
SmartAnswerCall.处理方法.用户留言录音(录音记录.str程序目录 + @"\Answer.wav", 10);
this.menu录音.Enabled = false;
this.menu重放.Enabled = false;
this.menu完成.Enabled = false;
this.timer时间.Interval = 0x3e8;
this.pro进度.Value = 0;
this.lbl状态.Text = "正在录音.........";
this.timer时间.Enabled = true;
}
private void timer时间_Tick(object sender, EventArgs e)
{
if (this.pro进度.Value < 10)
{
this.pro进度.Value++;
}
else
{
this.timer时间.Enabled = false;
this.menu录音.Enabled = true;
this.menu重放.Enabled = true;
this.menu完成.Enabled = true;
this.lbl状态.Text = "录音完成";
this.timer时间.Dispose();
}
}
private void menu重放_Click(object sender, EventArgs e)
{
处理方法.播放文件(录音记录.str程序目录 + @"\Answer.wav");
this.menu录音.Enabled = false;
this.menu重放.Enabled = false;
this.menu完成.Enabled = false;
this.timer时间.Interval = 0x3e8;
this.pro进度.Value = 0;
this.lbl状态.Text = "正在播放.........";
this.timer时间.Enabled = true;
}
private void menu完成_Click(object sender, EventArgs e)
{
base.Dispose();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -