ArcGISWindowsPhoneSDK.ClosestFacility.ChoicesListBox_SelectionChanged C# (CSharp) Method

ChoicesListBox_SelectionChanged() private method

private ChoicesListBox_SelectionChanged ( object sender, System e ) : void
sender object
e System
return void
        private void ChoicesListBox_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            string selected = e.AddedItems[0].ToString();

            switch (ChoicesListBox.Tag.ToString())
            {
                case "TravelDirection2":
                    TravelDirection2.Content = selected;
                    break;
                case "AttributeParameter2":
                    AttributeParameter2.Content = selected;
                    break;
                case "RestrictUTurns2":
                    RestrictUTurns2.Content = selected;
                    break;
                case "OutputLines2":
                    OutputLines2.Content = selected;
                    break;
                case "OutputGeometryPrecisionUnits2":
                    OutputGeometryPrecisionUnits2.Content = selected;
                    break;
                case "DirectionsLengthUnits2":
                    DirectionsLengthUnits2.Content = selected;
                    break;
                default:
                    break;
            }

            ChoicesPage.IsOpen = false;
        }