コード例 #1
0
        private void SetupButtons()
        {
            var matchButton01 = new MatchButtonViewModel();

            MatchButton01 = matchButton01;
            var matchButton02 = new MatchButtonViewModel();

            MatchButton02 = matchButton02;
            var matchButton03 = new MatchButtonViewModel();

            MatchButton03 = matchButton03;
            var matchButton04 = new MatchButtonViewModel();

            MatchButton04 = matchButton04;
            var matchButton05 = new MatchButtonViewModel();

            MatchButton05 = matchButton05;
            var matchButton06 = new MatchButtonViewModel();

            MatchButton06 = matchButton06;
            var matchButton07 = new MatchButtonViewModel();

            MatchButton07 = matchButton07;
            var matchButton08 = new MatchButtonViewModel();

            MatchButton08 = matchButton08;
            var matchButton09 = new MatchButtonViewModel();

            MatchButton09 = matchButton09;
            var matchButton10 = new MatchButtonViewModel();

            MatchButton10 = matchButton10;
            var matchButton11 = new MatchButtonViewModel();

            MatchButton11 = matchButton11;
            var matchButton12 = new MatchButtonViewModel();

            MatchButton12 = matchButton12;
            var matchButton13 = new MatchButtonViewModel();

            MatchButton13 = matchButton13;
            var matchButton14 = new MatchButtonViewModel();

            MatchButton14 = matchButton14;

            Buttons[0]  = matchButton01;
            Buttons[1]  = matchButton02;
            Buttons[2]  = matchButton03;
            Buttons[3]  = matchButton04;
            Buttons[4]  = matchButton05;
            Buttons[5]  = matchButton06;
            Buttons[6]  = matchButton07;
            Buttons[7]  = matchButton08;
            Buttons[8]  = matchButton09;
            Buttons[9]  = matchButton10;
            Buttons[10] = matchButton11;
            Buttons[11] = matchButton12;
            Buttons[12] = matchButton13;
            Buttons[13] = matchButton14;
        }
コード例 #2
0
 public MatchPageViewModel()
 {
     _stopwatch       = new Stopwatch();
     _dispatcherTimer = new DispatcherTimer();
     Terms            = new List <TermViewModel>();
     Buttons          = new MatchButtonViewModel[100];
     PositionsAtPlay  = new List <int>();
     SetupButtons();
     _firstButtonPressed      = false;
     _firstButtonPressedIndex = -1;
     _errors = 0;
 }