private void ChangeCheckBoxNamesAndState() { SizeGroup sizeGroup = skinComboBoxSizeGroup.SelectedItem as SizeGroup; int index = 0; foreach (var sizeName in CostumeStoreHelper.CostumeSizeColumn) { CheckBox box = this.panel1.Controls[index++] as CheckBox; box.Checked = false; box.Text = ReflectUtil.GetModelValue("NameOf" + sizeName, sizeGroup); box.Tag = sizeName; } }
/// <summary> /// 获取对应的尺码的数量值 /// </summary> /// <param name="sizeName"></param> /// <returns></returns> private Int16 GetSizeCount(string sizeName, BoundDetail detail) { return(Int16.Parse(ReflectUtil.GetModelValue(sizeName, detail))); }