using System;
using System.Collections.Generic;
using System.Text;namespace WindowsApplication2
{
    public class HealthCheckItem
    {
        private string _name;
        /// <summary>
        ///体检项目名称
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private string _description;
        /// <summary>
        /// 体检项目描述
        /// </summary>
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
        private string _result;
        /// <summary>
        /// 体检结果
        /// </summary>
        public string Result
        {
            get { return _result; }
            set { _result = value; }
        }
        private int _price;
        /// <summary>
        ///单价
        /// </summary>
        public int Price
        {
            get { return _price; }
            set { _price = value; }
        }
        public HealthCheckItem(string _name, int _price, string _description) 
        {
            this.Name = _name;
            this.Price = _price;
            this.Description = _description;
        }
    }
}using System;
using System.Collections.Generic;
using System.Text;namespace WindowsApplication2
{
    public class HealthCheckStem
    {
        public HealthCheckStem() 
        {
            _items = new Dictionary<string, HealthCheckItem>();
        }
        public HealthCheckStem(string _name, Dictionary<string, HealthCheckItem> _items) 
        {
            this.Name = _name;
            this.Items = _items;
        }
        private  string _name;
        /// <summary>
        /// 套餐名称 
        /// </summary>
        public  string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private Dictionary<string, HealthCheckItem> _items;
        /// <summary>
        /// 检查项目名  
        /// </summary>
        public Dictionary<string, HealthCheckItem> Items
        {
            get { return _items; }
            set { _items = value; }
        }
        private int _price;
        /// <summary>
        /// 套餐计算方法
        /// </summary>
        public int Price
        {
            get { return _price; }
            
        }        public void Calcprice() 
        {
            int totalprice = 0;
            foreach (HealthCheckItem item in Items.Values) 
            {
                totalprice += item.Price;
            }
            this._price= totalprice;
        }
    }
}有一个下comboBox1 只能保持套餐A或只能保持套餐B,comboBox2 保存 检查项目名 
当我点comboBox1 时候listView1显示 HealthCheckItem的体检项目名称,体检项目描述, 体检结果,单价 
当我点comboBox2 时候 listView1又显示 数据  和comboBox1 里面的数据不同的
如果listView1选择的是套餐A 而comboBox2 心电图 的时候。。这时 只是comboBox1 添加了  心电图 的数据
不会影响comboBox2 的数据的