in Kiosk/SettingsHelper.cs [228:308]
private void LoadAppRoamingSettings()
{
object value = ApplicationData.Current.RoamingSettings.Values["WorkspaceKey"];
if (value != null)
{
this.WorkspaceKey = value.ToString();
}
value = ApplicationData.Current.RoamingSettings.Values["StartingPage"];
if (value != null)
{
this.StartingPage = value.ToString();
}
value = ApplicationData.Current.RoamingSettings.Values["CameraName"];
if (value != null)
{
this.CameraName = value.ToString();
}
value = ApplicationData.Current.RoamingSettings.Values["CameraRotation"];
if (value != null)
{
object rotationValue;
if (Enum.TryParse(typeof(VideoRotation), value.ToString(), out rotationValue))
{
this.CameraRotation = (VideoRotation)rotationValue;
}
}
value = ApplicationData.Current.RoamingSettings.Values["MicrophoneName"];
if (value != null)
{
this.MicrophoneName = value.ToString();
}
value = ApplicationData.Current.RoamingSettings.Values["HowOldKioskResultDisplayDuration"];
if (value != null)
{
int duration;
if (int.TryParse(value.ToString(), out duration))
{
this.HowOldKioskResultDisplayDuration = duration;
}
}
value = ApplicationData.Current.RoamingSettings.Values["MinDetectableFaceCoveragePercentage"];
if (value != null)
{
uint size;
if (uint.TryParse(value.ToString(), out size))
{
this.MinDetectableFaceCoveragePercentage = size;
}
}
value = ApplicationData.Current.RoamingSettings.Values["ShowDebugInfo"];
if (value != null)
{
bool booleanValue;
if (bool.TryParse(value.ToString(), out booleanValue))
{
this.ShowDebugInfo = booleanValue;
}
}
value = ApplicationData.Current.RoamingSettings.Values["StartupFullScreenMode"];
if (value != null)
{
this.StartupFullScreenMode = (bool)value;
}
value = ApplicationData.Current.RoamingSettings.Values["ShowAgeAndGender"];
if (value != null)
{
if (bool.TryParse(value.ToString(), out bool booleanValue))
{
this.ShowAgeAndGender = booleanValue;
}
}
}