internal BubblesTaskStoryboardFactory(BubbleCanvas bubbleCanvas) { if (bubbleCanvas == null) throw new ArgumentNullException("bubbleCanvas"); _bubbleCanvas = bubbleCanvas; }
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(); }
public BubbleTaskStoryboardFactory(BubbleCanvas _bubbleCanvas) { this._bubbleCanvas = _bubbleCanvas; }