Esempio n. 1
0
        void OnGetPuPtzAttr(IntPtr session, IntPtr puIdPtr, int ptzIndex, IntPtr ptzAttrPtr)
        {
            string             puId    = Marshal.PtrToStringAnsi(puIdPtr);
            BVCU_PUCFG_PTZAttr ptzAttr = (BVCU_PUCFG_PTZAttr)Marshal.PtrToStructure(ptzAttrPtr, typeof(BVCU_PUCFG_PTZAttr));
            Pu pu = m_session.getPu(puId);

            if (pu != null)
            {
                pu.puPtz.Add(ptzAttr);
            }
        }
Esempio n. 2
0
 private void comboBoxCruiseLine_DropDown(object sender, EventArgs e)
 {
     comboBoxCruiseLine.Items.Clear();
     Dialog.OneDialog dlg = m_sdkOperator.Dialog.getDialog(m_activePanel);
     if (dlg != null && dlg.pu.puPtz.Count > 0)
     {
         BVCU_PUCFG_PTZAttr ptzAttr = (BVCU_PUCFG_PTZAttr)dlg.pu.puPtz[0];
         foreach (BVCU_PUCFG_Cruise cruise in ptzAttr.stCruise)
         {
             if (cruise.iIndex != -1)
             {
                 comboBoxCruiseLine.Items.Add(cruise.iIndex + " | " + cruise.szName);
             }
         }
     }
 }
Esempio n. 3
0
 private void comboBoxPresetPoint_DropDown(object sender, EventArgs e)
 {
     comboBoxPresetPoint.Items.Clear();
     Dialog.OneDialog dlg = m_sdkOperator.Dialog.getDialog(m_activePanel);
     if (dlg != null && dlg.pu.puPtz.Count > 0)
     {
         BVCU_PUCFG_PTZAttr ptzAttr = (BVCU_PUCFG_PTZAttr)dlg.pu.puPtz[0];
         foreach (BVCU_PUCFG_Preset preset in ptzAttr.stPreset)
         {
             if (preset.iIndex != -1)
             {
                 comboBoxPresetPoint.Items.Add(preset.iIndex + " | " + preset.szPreset);
             }
         }
     }
 }