Skip to content

Instantly share code, notes, and snippets.

@jasdev
Created Jul 30, 2012
Embed
What would you like to do?
Who uses Linked Lists anyways?
//Funny code segment I hacked together
private void TransportationPanel_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
settings["transportationMode"] = transportationOptions[(transportationOptions.IndexOf((string)settings["transportationMode"]) + 1) % 3];
switch ((string)settings["transportationMode"])
{
case "bike":
TransportationOption.Source = new BitmapImage(new Uri("Images/Icons/bike_icon_white.png", UriKind.Relative));
break;
case "car":
TransportationOption.Source = new BitmapImage(new Uri("Images/Icons/car_icon_white.png", UriKind.Relative));
break;
case "walk":
TransportationOption.Source = new BitmapImage(new Uri("Images/Icons/walk_icon_white.png", UriKind.Relative));
break;
default:
break;
}
TransportationText.Text = (string)settings["transportationMode"];
}
@BinRoot

This comment has been minimized.

Copy link

@BinRoot BinRoot commented Jul 30, 2012

nice mod, bro!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment