public void ShowSurroundWithList() { SnippetList sl = new SnippetList(null); foreach (Snippet s in _list) { if (s.IsSurroundsWith) { sl.Add(s); } } if (sl.Count == 0) { return; } if (_snipperChooser == null) { _snipperChooser = new SnippetChooser(); _snipperChooser.Scintilla = Scintilla; _snipperChooser.SnippetList = _list.ToString(); _snipperChooser.Scintilla.Controls.Add(_snipperChooser); } _snipperChooser.SnippetList = sl.ToString(); _snipperChooser.Show(); }
public void ShowSnippetList() { if (_list.Count == 0) { return; } if (_snipperChooser == null) { _snipperChooser = new SnippetChooser(); _snipperChooser.Scintilla = Scintilla; _snipperChooser.SnippetList = _list.ToString(); _snipperChooser.Scintilla.Controls.Add(_snipperChooser); } _snipperChooser.SnippetList = _list.ToString(); _snipperChooser.Show(); }