internal BubblesTaskStoryboardFactory(BubbleCanvas bubbleCanvas)
        {
            if (bubbleCanvas == null)
                throw new ArgumentNullException("bubbleCanvas");

            _bubbleCanvas = bubbleCanvas;
        }
Exemplo n.º 2
0
        void HandleBubbleCanvasLoaded(object sender, RoutedEventArgs e)
        {
            // Store a reference to the panel that contains the bubbles.
            _bubbleCanvas = sender as BubbleCanvas;

            // Create the factory that makes Storyboards used after a bubble group bursts.
            _storyboardFactory = new BubbleTaskStoryboardFactory(_bubbleCanvas);

            // Ready to Start the Game
            ViewModel.StartNewGame();
        }
Exemplo n.º 3
0
 public BubbleTaskStoryboardFactory(BubbleCanvas _bubbleCanvas)
 {
     this._bubbleCanvas = _bubbleCanvas;
 }