public void SetParameter(int CameraIPIndex, CameraParameter par, float value) {
        switch (par) {
            case EXPOSURE:
                this.SendParameter(CameraIPIndex, CameraParameter.EXPOSURE, value);
                break;
            case GAIN:
                this.SendParameter(CameraIPIndex, CameraParameter.GAIN, value);
                break;
            case AUTOEXP:
                this.SendParameter(CameraIPIndex, CameraParameter.AUTOEXP, value);
                break;
            case JPEGQUAL:
                this.SendParameter(CameraIPIndex, CameraParameter.JPEGQUAL, value);
                break;
            case COLORMODE:
                this.SendParameter(CameraIPIndex, CameraParameter.COLORMODE, value);
                break;
            case FPS:
                this.SendParameter(CameraIPIndex, CameraParameter.FPS, value);
                break;
            case SENSORWIDTH:
                this.SendParameter(CameraIPIndex, CameraParameter.SENSORWIDTH, value);
                break;
            case SENSORHEIGHT:
                this.SendParameter(CameraIPIndex, CameraParameter.SENSORHEIGHT, value);
                break;
            case RECORDFORMAT:
                this.SendParameter(CameraIPIndex, CameraParameter.RECORDFORMAT, value);
                break;
        }
    }