Beispiel #1
0
        public bool SetCameraMenu(CameraMenu cm)
        {
            bool flag = false;

            try
            {
                if (CiteDLL.XX_EnableMenuItems(this.CamSerial, cm.nEnableVideoResolutionItem, cm.nEnableCameraModeSelectionItem, cm.nEnableMotionDetectItem, cm.nEnablePreRecordLastRecordItem, cm.nEnableVioceAnnouncementItem, cm.nEnableButtonSelectSoundItem, cm.nEnableAllVisualIndicatorItem, cm.nEnableLEDIndicatorItem, cm.nEnableLaserIndicatorItem, cm.nEnableInfraredControlItem, cm.nEnableFWVersionItem, cm.nEnableSerialNumberItem, cm.nEnableLanguageItem))
                {
                    flag = true;
                }
            }
            catch
            {
            }
            return(flag);
        }
Beispiel #2
0
        public CameraMenu GetCameraMenu()
        {
            CameraMenu cameraMenu = new CameraMenu();
            int        num        = 0;
            int        num1       = 0;
            int        num2       = 0;
            int        num3       = 0;
            int        num4       = 0;
            int        num5       = 0;
            int        num6       = 0;
            int        num7       = 0;
            int        num8       = 0;
            int        num9       = 0;
            int        num10      = 0;
            int        num11      = 0;
            int        num12      = 0;

            try
            {
                if (CiteDLL.XX_GetMenuItemsStatus(this.CamSerial, out num, out num1, out num2, out num3, out num4, out num5, out num6, out num7, out num8, out num9, out num10, out num11, out num12))
                {
                    cameraMenu.nEnableVideoResolutionItem     = num;
                    cameraMenu.nEnableCameraModeSelectionItem = num1;
                    cameraMenu.nEnableMotionDetectItem        = num2;
                    cameraMenu.nEnablePreRecordLastRecordItem = num3;
                    cameraMenu.nEnableVioceAnnouncementItem   = num4;
                    cameraMenu.nEnableButtonSelectSoundItem   = num5;
                    cameraMenu.nEnableAllVisualIndicatorItem  = num6;
                    cameraMenu.nEnableLEDIndicatorItem        = num7;
                    cameraMenu.nEnableLaserIndicatorItem      = num8;
                    cameraMenu.nEnableInfraredControlItem     = num9;
                    cameraMenu.nEnableFWVersionItem           = num10;
                    cameraMenu.nEnableSerialNumberItem        = num11;
                    cameraMenu.nEnableLanguageItem            = num12;
                }
            }
            catch (Exception exception)
            {
                string message = exception.Message;
            }
            return(cameraMenu);
        }