Skip to content

Instantly share code, notes, and snippets.

@jasdev
Created Jul 30, 2012
Embed
What would you like to do?
2 line wonder
private void RadiusPanel_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
settings["radius"] = ((int)settings["radius"] % 10) + 1;
radiusText.Text = (int)settings["radius"] + ((int)settings["radius"] != 1 ? " miles" : " mile");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment