private void RadioButtonSpeaking_Checked(object sender, RoutedEventArgs e) { RadioButton radioButton = (RadioButton)sender; string speaking = radioButton.Content.ToString(); if (buttonsChecked["speaking"]) { if (valueChecked["speaking"] == "Yes") { priceInt -= Doll.PriceSpeaking(true); } else { priceInt -= Doll.PriceSpeaking(false); } } else { buttonsChecked["speaking"] = true; } valueChecked["speaking"] = speaking; if (speaking == "Yes") { priceInt += Doll.PriceSpeaking(true); } else { priceInt += Doll.PriceSpeaking(false); } price.Content = priceInt.ToString(); }