diff --git a/src/Camera.App/Core/Config.cs b/src/Camera.App/Core/Config.cs index bc22c91..86130cd 100644 --- a/src/Camera.App/Core/Config.cs +++ b/src/Camera.App/Core/Config.cs @@ -138,6 +138,7 @@ public bool IsCameraListVisible get => GetItem(true); set => SetItem(value); } + /// /// Gets or sets the camera wall grid layout. /// @@ -150,6 +151,19 @@ public WallGridLayout GridLayout /************************************************************************/ + #region Other + /// + /// Gets or sets whether proxy detection is disabled. + /// + public bool IsProxyDetectionDisabled + { + get => GetItem(false); + set => SetItem(value); + } + #endregion + + /************************************************************************/ + #region Private helper class /// /// Represents configuration values for a single window diff --git a/src/Camera.App/View/AppSettingsWindow.xaml b/src/Camera.App/View/AppSettingsWindow.xaml index bf003bf..424b6de 100644 --- a/src/Camera.App/View/AppSettingsWindow.xaml +++ b/src/Camera.App/View/AppSettingsWindow.xaml @@ -11,5 +11,8 @@ Title="{Binding DisplayName}" Height="450" Width="800"> + + + \ No newline at end of file diff --git a/src/Camera.App/ViewModel/AppSettingsViewModel.cs b/src/Camera.App/ViewModel/AppSettingsViewModel.cs index a21229f..6e4f169 100644 --- a/src/Camera.App/ViewModel/AppSettingsViewModel.cs +++ b/src/Camera.App/ViewModel/AppSettingsViewModel.cs @@ -19,6 +19,14 @@ public class AppSettingsViewModel : WindowViewModel /************************************************************************/ #region Properties + /// + /// Gets a boolean value that determines if proxy detection is disabled. + /// + public bool IsProxyDisabled + { + get => Config.IsProxyDetectionDisabled; + set => Config.IsProxyDetectionDisabled = value; + } #endregion /************************************************************************/