based on the code you presented something like this should do the trick. Once you get everything working, then think of how to improve it, or make it shorter.
public partial class frmPetClinic : Form
{
double currentTotal = 0;
double fleaTreatment = 112.5;
double hairTrim = 88;
System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Number |
System.Globalization.NumberStyles.AllowCurrencySymbol;
System.Globalization.CultureInfo culture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
private void chkFleaTreatment_CheckedChanged(object sender, EventArgs e)
{
double.TryParse(lblCost.Text, style, culture, out currentTotal);
if (chkFleaTreatment.Checked)
{
lblCost.Text = Math.Round(currentTotal + fleaTreatment, 2).ToString("C2");
}
else
{
lblCost.Text = Math.Round(currentTotal - fleaTreatment, 2).ToString("C2");
}
}
private void chkHairTrim_CheckedChanged(object sender, EventArgs e)
{
double.TryParse(lblCost.Text, style, culture, out currentTotal);
if (chkHairTrim.Checked)
{
lblCost.Text = Math.Round(currentTotal + hairTrim, 2).ToString("C2");
}
else
{
lblCost.Text = Math.Round(currentTotal - hairTrim, 2).ToString("C2");
}
}
}