public void UpdateCardSizesDef() { ViewModelLocator.GameLoader.Game.CardSizes = CardSizes.ToDictionary( x => x.IsDefault ? "" : ((SizeItemModel)x).Name, y => ((SizeItemModel)y)._size ); }
public void UpdateSizes() { ViewModelLocator.GameLoader.Game.CardSizes = CardSizes.ToDictionary( x => x.IsDefault ? "" : (x as SizeItemViewModel).Name, y => (y as SizeItemViewModel)._size ); }