Exemplo n.º 1
0
        private void SetSelectedVisibilty(ElementTypeCodeGroup elementCodeGroup)
        {
            foreach (MemberVisibility visibility in elementCodeGroup.Visibilty)
            {
                NameValueSelectected foundValue = visibilties.Find(
                    delegate(NameValueSelectected memberVisibilty)
                {
                    return((int)visibility == memberVisibilty.Value);
                });

                if (foundValue != null)
                {
                    foundValue.Selected = true;
                }
            }
        }
Exemplo n.º 2
0
        private void SetSelectedElementTypes(ElementTypeCodeGroup elementCodeGroup)
        {
            foreach (LanguageElementType elementType in elementCodeGroup.ElementTypes)
            {
                NameValueSelectected foundValue = elementTypes.Find(
                    delegate(NameValueSelectected languageElement)
                {
                    return((int)elementType == languageElement.Value);
                });

                if (foundValue != null)
                {
                    foundValue.Selected = true;
                }
            }
        }