Microsoft.Phone.Applications.UnitConverter.View.CategorySelection.OnToSelectionChanged C# (CSharp) Method

OnToSelectionChanged() public method

Handle the to list view selection event from the convert to unit list box
public OnToSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
sender object The sender.
e System.Windows.Controls.SelectionChangedEventArgs The instance containing the event data.
return void
        public void OnToSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e != null)
            {
                if (e.AddedItems.Count <= 0)
                {
                    return;
                }
                ApplicationState.CategoryPageInformation.TargetUnitName =
                    (e.AddedItems[0] as UnitInformation).NameLocalized;
            }
        }