private decimal TaxCharges()
{
decimal addTax;
decimal parts;
addTax = parts * 0.06m;
taxTxtBx.Text = addTax.ToString("c");
return addTax;
}
unassigned local variable 'parts' right after "addTax = parts
The variable parts
has never been assigned a value.
Assign it a value before making use of the variable. For example:
decimal parts = 0;