private void Upgrade1Btn_Click(object sender, RoutedEventArgs e) { double cost = 10; if (pc.GetPoints() > cost) { pc.IncreasePointsPerInterval(1); pc.DecreasePoints(10); //up.Upgrade1(); } }