internal void UpdateObservableDeckList(List <SharedDeckInfo> deckList) { lock (this) { Decks.Clear(); foreach (var g in deckList.GroupBy(x => x.GameId)) { var dg = new SharedDeckGroup(g.Key, IsMe); Decks.Add(dg); foreach (var d in g) { dg.Decks.Add(new SharedDeckInfoWithOwner(d, IsMe)); } } } }
internal void UpdateObservableDeckList(List<SharedDeckInfo> deckList) { lock (this) { Decks.Clear(); foreach (var g in deckList.GroupBy(x => x.GameId)) { var dg = new SharedDeckGroup(g.Key, IsMe); Decks.Add(dg); foreach (var d in g) { dg.Decks.Add(new SharedDeckInfoWithOwner(d, IsMe)); } } } }