예제 #1
0
        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();
        }
예제 #2
0
        public SnippetManager(Scintilla scintilla) : base(scintilla)
        {
            _list = new SnippetList(this);

            _snippetLinkTimer.Interval = 1;
            _snippetLinkTimer.Tick    += new EventHandler(snippetLinkTimer_Tick);

            IsEnabled = _isEnabled;
        }