Пример #1
0
 public void UpdateCardSizesDef()
 {
     ViewModelLocator.GameLoader.Game.CardSizes = CardSizes.ToDictionary(
         x => x.IsDefault ? "" : ((SizeItemModel)x).Name,
         y => ((SizeItemModel)y)._size
         );
 }
Пример #2
0
 public void UpdateSizes()
 {
     ViewModelLocator.GameLoader.Game.CardSizes = CardSizes.ToDictionary(
         x => x.IsDefault ? "" : (x as SizeItemViewModel).Name,
         y => (y as SizeItemViewModel)._size
         );
 }