コード例 #1
0
 //Show Item selected in the textbox and in image
 public void LviewAction(AbstractItem absItem)
 {
     if (absItem != null)
     {
         _mainpage.image.Source       = absItem.Image;
         _mainpage.tBDescription.Text = absItem.DescriptionString();
         SelectedItem = absItem;
         if (absItem as JournalLib != null)
         {
             _mainpage.bTRentIt.Visibility = Visibility.Collapsed;
         }
         else
         {
             _mainpage.bTRentIt.Visibility = Visibility.Visible;
         }
     }
 }