日期:2014-05-17 浏览次数:20489 次
private void button5_Click(object sender, EventArgs e) //开始播放按钮
{
if (Pflag)
{
if (txtTime.Text != "")
{
if (cbbShowType.SelectedIndex == 1) //dropdownlist选项一:原图显示
{
timer1.Interval = int.Parse(txtTime.Text.Trim());
timer1.Start(); //开始计时播放(默认速度为1000毫秒)
button5.Enabled = false;
}
else
{
Form2 frm2 = new Form2(); //跳转到from2进行图片播放
frm2.fsi = al;
frm2.picPath = txtPicPath.Text.Trim();
frm2.mytimer = int.Parse(txtTime.Text.Trim());
frm2.ShowDialog();
}
}
}
}
private void timer1_Tick(object sender, EventArgs e) //计时工具
&n