if (checkedListBoxAdditions.CheckedItems.Count != 0) { string s = ""; for (int x = 0; x <= checkedListBoxAdditions.CheckedItems.Count - 1; x++) { if (checkedListBoxAdditions. == true) { totalAmount = totalAmount + price[4]; } if (x == 2) { totalAmount = totalAmount + price[5]; } if (x == 3) { totalAmount = totalAmount + price[6]; } if (x == 4) { totalAmount = totalAmount + price[7]; } if (x == 5) { totalAmount = totalAmount + price[8]; } } MessageBox.Show(totalAmount + ""); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)