Пример #1
0
        internal BubblesTaskFactory(BubbleMatrixViewModel bubbleMatrix)
        {
            if (bubbleMatrix == null)
            {
                throw new ArgumentNullException("bubbleMatrix");
            }

            _bubbleMatrix = bubbleMatrix;
        }
Пример #2
0
        internal BubbleFactory(BubbleMatrixViewModel bubbleMatrix)
        {
            if (bubbleMatrix == null)
            {
                throw new ArgumentNullException("bubbleMatrix");
            }

            _bubbleMatrix = bubbleMatrix;

            _bubbleStagingArea = new List <BubbleViewModel>();

            _timer = new DispatcherTimer {
                Interval = TimeSpan.FromMilliseconds(10)
            };
            _timer.Tick += this.HandleTimerTick;
        }