Esempio n. 1
0
 /*
  * 加载会员类型到ComboBox中
  * */
 private void LoadMemberTypes()
 {
     memberTypeDatas = MemberInfoConnector.GetMemberTypeDatas();
     foreach (MemberTypeData item in memberTypeDatas)
     {
         ComboBoxItem comboBoxItem = new ComboBoxItem();
         comboBoxItem.Content = item.MTitle;
         MemberTypes.Items.Add(comboBoxItem);
     }
 }
Esempio n. 2
0
 /**
  * 加载所有的会员类型(除了普通会员,也就是id为5的会员类型)
  * */
 private void LoadAllTypes()
 {
     if (memberTypeDatas != null)
     {
         for (int i = 0; i < memberTypeDatas.Count - 1; i++)
         {
             MemberTypeList.Items.RemoveAt(0);
         }
     }
     memberTypeDatas = MemberInfoConnector.GetMemberTypeDatas();
     foreach (MemberTypeData infoData in memberTypeDatas)
     {
         if (infoData.MtId != 5)
         {
             InfomationTable infomationTable = new InfomationTable(infoData);
             MemberTypeList.Items.Add(infomationTable);
         }
     }
 }