internal Dice(ViewModel.DiceViewModel mainViewModel) { InitializeComponent(); DataContext = mainViewModel; }
public Dice(ViewModel.GameViewModel mainViewModel) { this.mainViewModel = mainViewModel as ViewModel.DiceViewModel; this.mainViewModel.DiceSliderMaximum = Convert.ToDouble(mainViewModel.GetPlayer.Money); }