/// <summary> /// Launches a <see cref="TypeMemberChooserUI"/> to perform the selection of multiple members. /// </summary> /// <param name="type">The type for which the members are to be selected.</param> /// <returns>A colleciton with the selected members.</returns> public IEnumerable<MemberInfo> ChooseMembers(Type type) { using (TypeMemberChooserUI chooserUI = new TypeMemberChooserUI(type, uiService)) { if (DialogResult.OK == chooserUI.ShowDialog()) { return chooserUI.GetSelectedMembers(); } else { return new List<MemberInfo>(); } } }
/// <summary> /// Launches a <see cref="TypeMemberChooserUI"/> to perform the selection of multiple members. /// </summary> /// <param name="type">The type for which the members are to be selected.</param> /// <returns>A colleciton with the selected members.</returns> public IEnumerable <MemberInfo> ChooseMembers(Type type) { using (TypeMemberChooserUI chooserUI = new TypeMemberChooserUI(type, uiService)) { if (DialogResult.OK == chooserUI.ShowDialog()) { return(chooserUI.GetSelectedMembers()); } else { return(new List <MemberInfo>()); } } }