Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public static class Settings
{
private static ApplicationDataContainer _settings = ApplicationData.Current.LocalSettings;
public static bool IsFirstRun
{
get
{
if (_settings.Values.TryGetValue(nameof(IsFirstRun), out var isFirstRun))
{
return (bool)isFirstRun;
}
return true;
}
set => _settings.Values[nameof(IsFirstRun)] = value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment