public bool GrabCard(CollectionCardVisual cardVisual)
    {
        Actor actor = cardVisual.GetActor();

        if (!this.CanGrabItem(actor))
        {
            return(false);
        }
        if (!this.m_heldCardVisual.ChangeActor(actor, cardVisual.GetVisualType()))
        {
            return(false);
        }
        this.m_scrollBar.Pause(true);
        PegCursor.Get().SetMode(PegCursor.Mode.DRAG);
        CollectionCardBack component = actor.GetComponent <CollectionCardBack>();

        this.m_heldCardVisual.SetSlot(null);
        if (component != null)
        {
            this.m_heldCardVisual.SetCardBackId(component.GetCardBackId());
        }
        this.m_heldCardVisual.transform.position = actor.transform.position;
        this.m_heldCardVisual.Show(this.m_mouseIsOverDeck);
        SoundManager.Get().LoadAndPlay("collection_manager_pick_up_card", this.m_heldCardVisual.gameObject);
        return(true);
    }
 public void UpdateFavoriteCardBack(CollectionManagerDisplay.ViewMode mode)
 {
     if (mode == CollectionManagerDisplay.ViewMode.CARD_BACKS)
     {
         int defaultCardBack = -1;
         if (!CollectionManager.Get().IsInEditMode())
         {
             defaultCardBack = NetCache.Get().GetNetObject <NetCache.NetCacheCardBacks>().DefaultCardBack;
         }
         foreach (CollectionCardVisual visual in this.m_collectionCardVisuals)
         {
             if (visual.IsShown())
             {
                 CollectionCardBack component = visual.GetActor().GetComponent <CollectionCardBack>();
                 if (component != null)
                 {
                     component.ShowFavoriteBanner(defaultCardBack == component.GetCardBackId());
                 }
             }
         }
     }
 }