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 ); }
public void UpdateAltCardSize() { if (!CardSizes.Contains(CardSize) || CardSize.IsDefault) { CardSize = ViewModelLocator.PreviewTabViewModel.DefaultSize; } }
public void AddSize() { var ret = new SizeItemModel(CardSizes); CardSizes.Add(ret); Selection = ret; RaisePropertyChanged("CardSizes"); }
public void AddSize() { var ret = new SizeItemViewModel() { ItemSource = CardSizes, Name = "Size" }; CardSizes.Add(ret); Selection = ret; RaisePropertyChanged("CardSizes"); }