ARCed.Scintilla.SnippetManager.ShowSurroundWithList C# (CSharp) Method

ShowSurroundWithList() public method

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