ScintillaNET.SnippetManager.ShowSurroundWithList C# (CSharp) Method

ShowSurroundWithList() public method

public ShowSurroundWithList ( ) : void
return void
        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();
        }