Ejemplo n.º 1
0
        /// <summary>
        /// Press start video button
        /// </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)
            {
                //To start recording
                if (NETPlay.NETStartDataRecord((int)nudPlayChannelNO.Value, strtemp, cmbDataType.SelectedIndex))
                {
                    //MessageBox.Show("Start data flow save success!", "Prompt:");
                    MessageBox.Show(strtemp, "Prompt:");
                }
                else
                {
                    MessageBox.Show("Start data flow save failure!", "Prompt:");
                };
            }
            else
            {
                MessageBox.Show("Please choose the save path and equipment save file name !", "Prompt:");
            }
        }