예제 #1
0
        public void FillTypes(CustomItemsRequestEventArgs e)
        {
            LanguageService    ls          = LanguageService.Get(this);
            ClassOrStructBlock parentClass = ClassNavigator.FindContainingClassOrStruct(this);

            if (ls != null)
            {
                ls.FillTypeItems(parentClass, e.Items);
            }
            e.ShouldCallFillItems = false;
            e.ShowOnlyCustomItems = true;
        }
예제 #2
0
        protected override void FillItems(CustomItemsRequestEventArgs e)
        {
            LanguageService    ls          = LanguageService.Get(this);
            ClassOrStructBlock parentClass = ClassNavigator.FindContainingClassOrStruct(this);

            if (ls != null && parentClass != null)
            {
                IEnumerable <TextPictureInfo> types = ls.GetTypeList(parentClass);
                foreach (TextPictureInfo t in types)
                {
                    AddEmptyItem(t.Text, t.Picture, e.Items);
                }
            }
        }
예제 #3
0
        public override void FillItems(CustomItemsRequestEventArgs e)
        {
            LanguageService    ls     = LanguageService.Get(this);
            ClassOrStructBlock parent = ClassNavigator.FindContainingClassOrStruct(this);

            if (ls != null && parent != null)
            {
                ListSet <TextPictureInfo> result = new ListSet <TextPictureInfo>();
                AddItems(e.Items, ItemStrings);

                ls.FillTypeList(parent, result);
                foreach (TextPictureInfo s in result)
                {
                    CompletionListItem item = CreateItem(s.Text);
                    if (item.ShouldShow(this.Completion))
                    {
                        item.Picture = s.Picture;
                        e.Items.Add(item);
                    }
                }
            }
        }