private void StartNewGame_Click(object sender, RoutedEventArgs e) { pc = new PointCounter(); //up = new Upgrade(); pc.Initialize(); pc.OnTick += (points) => { }; Upgrade1Btn.Visibility = Visibility.Visible; Upgrade2Btn.Visibility = Visibility.Visible; }