public MainWindow() { InitializeComponent(); baseballSimulator = FindResource("baseballSimulator") as BaseballSimulator; }