Пример #1
0
        public DiceGameControl()
        {
            InitializeComponent();
            current_die_size      = max_die_control_side;
            resize_timer          = new Timer();
            resize_timer.Interval = 1000; // ms
            resize_timer.Tick    += (sender, e) => OnGameBoardResizeEnd();
            DieModel[] new_dice = new DieModel[] {
                new DieModel(DieSide.ONE, true),
                new DieModel(DieSide.JOKER, true),
                new DieModel(DieSide.FIVE, false),
                new DieModel(DieSide.FIVE),
                new DieModel(DieSide.SIX),
                new DieModel(DieSide.TWO)
            };

            InitBoard(new_dice);
        }
 public DiceSelectChangedEventArgs(Die die)
 {
     ChangedDice = new List <Die>();
     ChangedDice.Add(die);
 }