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

            _bubbleCanvas = bubbleCanvas;
        }
Beispiel #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();
        }
Beispiel #3
0
 public BubbleTaskStoryboardFactory(BubbleCanvas _bubbleCanvas)
 {
     this._bubbleCanvas = _bubbleCanvas;
 }