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 SnippetManager(Scintilla scintilla) : base(scintilla) { _list = new SnippetList(this); _snippetLinkTimer.Interval = 1; _snippetLinkTimer.Tick += new EventHandler(_snippetLinkTimer_Tick); IsEnabled = _isEnabled; }