示例#1
0
        public ArrayList GetSnippetCompletionItems()
        {
            ArrayList items = new ArrayList();

            items.Sort();

            foreach (SnippetCategory c in SnippetCategories)
            {
                foreach (Snippet s in c.Snippets)
                {
                    if (!string.IsNullOrEmpty(s.Shortcut))
                    {
                        SnippetCompletionData item = new SnippetCompletionData(s.Text, s.Shortcut, s);
                        items.Add(item);
                    }
                }
            }

            return(items);
        }
示例#2
0
        public int CompareTo(object obj)
        {
            SnippetCompletionData s = (SnippetCompletionData)obj;

            return(s.Text.CompareTo(this.Text));
        }
示例#3
0
        public ArrayList GetSnippetCompletionItems()
        {
            ArrayList items = new ArrayList();
            items.Sort();

            foreach (SnippetCategory c in SnippetCategories)
            {
                foreach (Snippet s in c.Snippets)
                {
                    if (!string.IsNullOrEmpty(s.Shortcut))
                    {
                        SnippetCompletionData item = new SnippetCompletionData(s.Text, s.Shortcut, s);
                        items.Add(item);
                    }
                }
            }

            return items;
        }