private void btn_OK_Click(object sender, EventArgs e) { var total = 0.00M; //传值下拉选择活动和原价,计算实际收费 total = cf.GetTotalPrice(cbxType.SelectedItem.ToString(), Convert.ToDecimal(txbPrice.Text) * Convert.ToDecimal(txbNum.Text)); totalPrice += total; lbList.Items.Add("单价:" + txbPrice.Text + " 数量:" + txbNum.Text + " " + cbxType.SelectedItem + " 合计:" + total.ToString("C")); lblResult.Text = totalPrice.ToString("C"); }