예제 #1
0
 //初始化一个套餐
 public void InitHealth()
 {
     item.Add(height.Name, height);
     item.Add(weight.Name, weight);
     item.Add(sight.Name, sight);
     set = new HealthSet("入学体检", item);
     set.SumPirce();
     allset.Add("入学体检", set);
 }
예제 #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (this.txtHealthName.Text.Trim() != null && this.txtHealthName.Text.Trim() != "")
            {
                HealthSet set = new HealthSet();
                allset.Add(this.txtHealthName.Text.Trim(), set);
                InitSet();

                this.cboSets.SelectedIndex = allset.Count;
            }
            else
            {
                MessageBox.Show("请输入添加的套餐名称");
            }
        }
예제 #3
0
 public void UpdateSet(HealthSet set)
 {
     this.dgvHealthList.DataSource = new BindingList <HealthItmes>(set.Items.Values.ToList());
 }