private void InvokePresetProcess()
        {
            PTZPresetEntity pTZPreset = liveVideoPtzUserControls.PresetList.SelectedItem as PTZPresetEntity;

            var resultValue = business.SendPtz(PtzOperationType.PTZ_PREFAB_BIT_RUN, pTZPreset.PresetIndex, 5, pTZPreset.CameraCode);

            liveVideoPtzUserControls.eSDKCodeTextBlock.Text = @"int resultCode = OcxHelper.IVS_OCX_PtzControl(strCameracode, (int)operation, param1.ToString(), param2.ToString())";
            if (resultValue != 0)
            {
                OcxHelper.MainWin.OperationInfo.Content = StringHelper.FindLanguageResource(resultValue.ToString());
            }
            else
            {
                OcxHelper.MainWin.OperationInfo.Content = StringHelper.FindLanguageResource("InvokePreset") + StringHelper.FindLanguageResource("Success");
            }
        }
        private void DeletePresetProcess()
        {
            PTZPresetEntity pTZPreset = liveVideoPtzUserControls.PresetList.SelectedItem as PTZPresetEntity;

            if (pTZPreset == null)
            {
                return;
            }
            var resultValue = OcxHelper.OCX.IVS_OCX_DelPTZPreset(pTZPreset.CameraCode, (uint)(pTZPreset.PresetIndex));

            liveVideoPtzUserControls.eSDKCodeTextBlock.Text = @"int resultCode = OcxHelper.IVS_OCX_DelPTZPreset(pTZPreset.CameraCode, (uint)(pTZPreset.PresetIndex));";
            if (resultValue != 0)
            {
                OcxHelper.MainWin.OperationInfo.Content = StringHelper.FindLanguageResource(resultValue.ToString());
            }
            else
            {
                OcxHelper.MainWin.OperationInfo.Content = StringHelper.FindLanguageResource("DeletePreset") + StringHelper.FindLanguageResource("Success");
            }
            QueryPresetProcess();
        }