Esempio n. 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();
        }
Esempio n. 2
0
		public void ShowSnippetList()
		{
			if (_list.Count == 0)
				return;

			if (_snipperChooser == null)
			{
				_snipperChooser = new SnippetChooser();
				_snipperChooser.Scintilla = Scintilla;
				_snipperChooser.SnippetList = _list.ToString();
				_snipperChooser.Scintilla.Controls.Add(_snipperChooser);
			}
			_snipperChooser.SnippetList = _list.ToString();
			_snipperChooser.Show();
		}
Esempio n. 3
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();
		}