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); }
public int CompareTo(object obj) { SnippetCompletionData s = (SnippetCompletionData)obj; return(s.Text.CompareTo(this.Text)); }
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; }