Beispiel #1
0
 public NumberDiceViewModel()
 {
     Numbers = new RangeLoopingSelectorDataSource(1, 20);
     updateInformation();
     _originalNumber = NumberOfDice;
     Numbers.SelectionChanged += Numbers_SelectionChanged;
 }
Beispiel #2
0
        public NumberSidesViewModel()
        {
            Numbers = new RangeLoopingSelectorDataSource(2, 20);
            Numbers.SelectionChanged += (sender, e) => NotifyPropertyChanged("NumberOfSides");

            NumberOfSides = 6;
            _originalNumber = NumberOfSides;
            updateInformation();
        }