private Section CreateCameraSettingsSection()
 {
     return(new Section(new Row[]
     {
         FloatRow.Create(
             "Max Frame Rate",
             () => NumberFormatter.Instance.FormatNFloat(SettingsManager.Instance.MaxFrameRate),
             () => SettingsManager.Instance.MaxFrameRate,
             value => SettingsManager.Instance.MaxFrameRate = value
             ),
         ChoiceRow <Resolution> .Create(
             "Preferred Resolution",
             Enumeration.GetAll <Resolution>().ToArray(),
             () => Resolution.Create(SettingsManager.Instance.PreferredResolution),
             value => SettingsManager.Instance.PreferredResolution = value.VideoResolution,
             this.DataSourceListener
             ),
         SliderRow.Create(
             "Zoom Factor",
             () => SettingsManager.Instance.ZoomFactor,
             value => SettingsManager.Instance.ZoomFactor = value
             ),
         ChoiceRow <FocusRangeType> .Create(
             "Focus Range",
             Enumeration.GetAll <FocusRangeType>().ToArray(),
             () => FocusRangeType.Create(SettingsManager.Instance.FocusRange),
             value => SettingsManager.Instance.FocusRange = value.FocusRange,
             this.DataSourceListener
             )
     }, "Camera Settings"));
 }
 private Section CreateCameraSettingsSection()
 {
     return(new Section(new Row[]
     {
         ChoiceRow <Resolution> .Create(
             "Preferred Resolution",
             Enumeration.GetAll <Resolution>().ToArray(),
             () => Resolution.Create(SettingsManager.Instance.PreferredResolution),
             value => SettingsManager.Instance.PreferredResolution = value.VideoResolution,
             this.DataSourceListener
             ),
         SliderRow.Create(
             "Zoom Factor",
             () => SettingsManager.Instance.ZoomFactor,
             value => SettingsManager.Instance.ZoomFactor = value
             ),
         SliderRow.Create(
             "Zoom Gesture Zoom Factor",
             () => SettingsManager.Instance.ZoomGestureZoomFactor,
             value => SettingsManager.Instance.ZoomGestureZoomFactor = value
             ),
         ChoiceRow <FocusGestureStrategyType> .Create(
             "Focus Gesture Strategy",
             Enumeration.GetAll <FocusGestureStrategyType>().ToArray(),
             () => FocusGestureStrategyType.Create(SettingsManager.Instance.FocusGestureStrategy),
             value => SettingsManager.Instance.FocusGestureStrategy = value.FocusGestureStrategy,
             this.DataSourceListener
             ),
         ChoiceRow <FocusRangeType> .Create(
             "Focus Range",
             Enumeration.GetAll <FocusRangeType>().ToArray(),
             () => FocusRangeType.Create(SettingsManager.Instance.FocusRange),
             value => SettingsManager.Instance.FocusRange = value.FocusRange,
             this.DataSourceListener
             )
     }, "Camera Settings"));
 }