Esempio n. 1
0
        private void DoneClicked(object sender, EventArgs e)
        {
            ElementTypeCodeGroup elementCodeGroup = group as ElementTypeCodeGroup;

            if (elementCodeGroup != null)
            {
                elementCodeGroup.ElementTypes.Clear();
                foreach (NameValueSelectected element in elementTypes)
                {
                    if (element.Selected == true)
                    {
                        elementCodeGroup.ElementTypes.Add((LanguageElementType)element.Value);
                    }
                }

                elementCodeGroup.Visibilty.Clear();
                foreach (NameValueSelectected visibilty in visibilties)
                {
                    if (visibilty.Selected == true)
                    {
                        elementCodeGroup.Visibilty.Add((MemberVisibility)visibilty.Value);
                    }
                }
            }

            ParentForm.Close();
        }
Esempio n. 2
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;
                }
            }
        }
Esempio n. 3
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;
                }
            }
        }
        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;
            }
        }
        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;
            }
        }