예제 #1
0
 /// <summary>
 /// 视频丢失报警配置信息显示
 /// </summary>
 /// <param name="alarmConfig"></param>
 private void setDataToControl(DH_VIDEO_LOST_CFG alarmConfig)
 {
     try
     {
         chkAlarmEn.Checked = (alarmConfig.byAlarmEn == 1 ? true : false);
         setActionMask(alarmConfig.struHandle);
         cmbAWeeks.SelectedIndex = -1;
         cmbAWeeks.SelectedIndex = 0;
     }
     catch
     {
         MessageBox.Show("赋值错误!", pMsgTitle);
     }
 }
예제 #2
0
 /// <summary>
 /// 保存视频丢失信息
 /// </summary>
 /// <param name="AlarmConfig"></param>
 private void AlarmSaveData(ref DH_VIDEO_LOST_CFG AlarmConfig)
 {
     cmbAWeeks_DropDown(null, null);
     AlarmConfig.byAlarmEn =(byte) (chkAlarmEn.Checked == true ? 1 : 0);
     AlarmSaveData(ref AlarmConfig.struHandle);
     
 }