public void SetDeck(Deck deck, CardRepository repo) { lock (DataSource) DataSource.Clear(); MainDeck.SetDeck(deck.MainDeck); SideDeck.SetDeck(deck.Sideboard); LoadDeck(repo); }