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