Exemplo n.º 1
0
        internal _3BTaskFactory(_GAME_3BMatrixViewModel bubbleMatrix)
        {
            if (bubbleMatrix == null)
            {
                throw new ArgumentNullException("bubbleMatrix");
            }

            _bubbleMatrix = bubbleMatrix;
        }
Exemplo n.º 2
0
        internal _3BFactory(_GAME_3BMatrixViewModel bubbleMatrix)
        {
            if (bubbleMatrix == null)
            {
                throw new ArgumentNullException("bubbleMatrix"); //Class này là con của ArgumentException, nó được ném ra bởi phương thức mà không cho phép thông số null truyền vào.
            }
            _bubbleMatrix = bubbleMatrix;

            _bubbleStagingArea = new List <_GAME_3BViewModel>();

            _timer = new DispatcherTimer {
                Interval = TimeSpan.FromMilliseconds(10)
            };                                                                        //điều phối thời gian
            _timer.Tick += this.HandleTimerTick;
        }