This is a very general and noob question, but I am a noob with real programming so...

How can I set a Boolean setting and store that setting so that when you exit the app and come back the setting is how the user left it? I also need to know how to read that setting and enable features based on them.

I plan to have two settings in my app, one for location and one for turning off an alert on attempting to exit the app (I know this is considered bad by most people, but trust me, it makes sense for this app). 

I have no idea how to do this, things like this and cookies have always confounded me, so a good explanation would be greatly appreciated.

My app is in C# and XAML if that helps.