Created
July 30, 2012 05:16
-
-
Save jasdev/3204954 to your computer and use it in GitHub Desktop.
Who uses Linked Lists anyways?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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"]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice mod, bro!