Пример #1
0
 private void onListItemSelected(Base sender, ItemSelectedEventArgs arguments)
 {
     try
     {
         if (arguments.SelectedItem.UserData is ComputerPlusEntity)
         {
             ComputerPedController.LastSelected = arguments.SelectedItem.UserData as ComputerPlusEntity;
             Function.AddPedToRecents(ComputerPedController.LastSelected.Ped);
             ClearSelections();
             this.ShowDetailsView();
         }
         else
         {
             Function.Log("ComputerPedSearch.onListItemSelected arguments were not valid");
         }
     }
     catch (Exception e)
     {
         Function.Log(e.ToString());
     }
 }