Exemple #1
0
        public static void GetCompletion(
			TextBoxBlockWithCompletion textBox,
			ICompletionListBuilder items,
			CompletionContext context)
        {
            LanguageService ls = Get(textBox);
            if (ls != null)
            {
                ls.RaiseProvideCompletion(textBox, items, context);
            }
        }
Exemple #2
0
        internal void RaiseProvideCompletion(
			TextBoxBlockWithCompletion statementBlock,
			ICompletionListBuilder items,
			CompletionContext context)
        {
            if (ProvideCompletion != null)
            {
                ProvideCompletionEventArgs e = new ProvideCompletionEventArgs(
                    statementBlock);
                e.Items = items;
                e.Context = context;
                ProvideCompletion(statementBlock, e);
            }
        }