void PageTraineeOnActive(bool active)//Trainee按钮调用 { if (active) { mPageType = MyMemberType.Trainee; Refresh(mPageType); } }
void PageInstructorOnActive(bool active)//Instructor按钮调用 { if (active) { mPageType = MyMemberType.Instructor; Refresh(mPageType); } }
void Refresh(MyMemberType type) { ClearMemberList(); foreach (KeyValuePair <MyMemberType, List <MyMemberInf> > i in mMemberDataList) { if (i.Key == type) { curMemList = i.Value; } } foreach (MyMemberInf mmi in curMemList) { CreatMemberItem(mmi); } }