Ejemplo n.º 1
0
        /// <summary>
        /// 开始录像按钮按下处理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnStartRecord_Click(object sender, EventArgs e)
        {
            string strtemp = txtDirPath.Text.ToString() + @"\" + txtFileName.Text.ToString();

            strtemp = strtemp.Replace(@"\\", @"\");
            if (strtemp.Length > 0)
            {
                //开始录像
                if (DHPlay.DHStartDataRecord((int)nudPlayChannelNO.Value, strtemp, cmbDataType.SelectedIndex))
                {
                    //MessageBox.Show("开始数据流保存成功!", "提示:");
                    MessageBox.Show(strtemp, "提示:");
                }
                else
                {
                    MessageBox.Show("开始数据流保存失败!", "提示:");
                };
            }
            else
            {
                MessageBox.Show("请选择存放目录和设备保存文件名!", "提示:");
            }
        }