// 是否警报
 private void radioButton1_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         ClassXml.saveSetXml("sound", "是");
     }
     else
     {
         ClassXml.saveSetXml("sound", "否");
     }
     initSet();
 }
 // 是否移动监测
 private void radioButton4_Click(object sender, EventArgs e)
 {
     if (radioButton4.Checked)
     {
         ClassXml.saveSetXml("motiondetect", "是");
     }
     else
     {
         ClassXml.saveSetXml("motiondetect", "否");
     }
     initSet();
 }
        // 录像路径保存
        private void button4_Click(object sender, EventArgs e)
        {
            string path = "";
            FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();

            folderBrowserDialog.Description         = "请选择录像保存路径";
            folderBrowserDialog.ShowNewFolderButton = false;
            if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
            {
                path = folderBrowserDialog.SelectedPath;
                //MessageBox.Show(path);
            }
            ClassXml.saveSetXml("record", path);
            initSet();
        }