private void btnSnapShot_Click(object sender, EventArgs e) { string path; path = ConfigurationManager.AppSettings["ImageSavePath"] + "SMCameraPic" + "\\" + StaticClass.ProjName + "\\" + "Camera" + StaticClass.Temper_CameraId.ToString() + "\\"; if (DMSDK.DM_Capture(StaticClass.tempMonitor, path) < 0) { MessageBox.Show("保存图片失败!请检查路径再重试"); } else { MessageBox.Show("抓图完成!"); } }