Skip to content

Instantly share code, notes, and snippets.

@jasdev
Created July 30, 2012 05:16
Show Gist options
  • Select an option

  • Save jasdev/3204954 to your computer and use it in GitHub Desktop.

Select an option

Save jasdev/3204954 to your computer and use it in GitHub Desktop.
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
Copy link
Copy Markdown

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