public DuckController(MainWindow window, GameController gameController) { this.window = window; this.gameController = gameController; ducks = new ArrayList(); rnd = new Random(); dispatcher = Dispatcher.CurrentDispatcher; duckFactory = new DuckFactory(window, this); }
public MainWindow() { InitializeComponent(); c = new GameController(this); }
private void StartButton_Click(object sender, RoutedEventArgs e) { c = new GameController(this); startButton.Visibility = Visibility.Hidden; }