示例#1
0
        private void txtSnippet_AutoCompleteAccepted(object sender, AutoCompleteAcceptedEventArgs e)
        {
            string shortcut = txtSnippet.AutoComplete.SelectedText;

            Hide();
            Scintilla.Snippets.InsertSnippet(shortcut);
        }
 /// <summary>
 /// This method is used to deal with what occurs when a user
 /// selects a snippet in the auto-complete box.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void scintilla_AutoCompleteAccepted(object sender, AutoCompleteAcceptedEventArgs e)
 {
     if (Scintilla.Snippets.List.Contains(this.SelectedText))
     {
         // Trigger the snippet insertion.
         Scintilla.Snippets.InsertSnippet(this.SelectedText);
     }
 }
示例#3
0
 /// <summary>
 /// This method is used to deal with what occurs when a user 
 /// selects a snippet in the auto-complete box.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void scintilla_AutoCompleteAccepted(object sender, AutoCompleteAcceptedEventArgs e)
 {
     if (Scintilla.Snippets.List.Contains(this.SelectedText))
     {
         // Trigger the snippet insertion.
         Scintilla.Snippets.InsertSnippet(this.SelectedText);
     }
 }
示例#4
0
        /// <summary>
        /// Raises the <see cref="AutoCompleteAccepted"/> event.
        /// </summary>
        /// <param name="e">An <see cref="AutoCompleteAcceptedEventArgs"/> that contains the event data.</param>
        protected virtual void OnAutoCompleteAccepted(AutoCompleteAcceptedEventArgs e)
        {
            EventHandler<AutoCompleteAcceptedEventArgs> handler = Events[_autoCompleteAcceptedEventKey] as EventHandler<AutoCompleteAcceptedEventArgs>;
            if (handler != null)
                handler(this, e);

            if (e.Cancel)
                AutoComplete.Cancel();
        }
示例#5
0
		private void txtSnippet_AutoCompleteAccepted(object sender, AutoCompleteAcceptedEventArgs e)
		{
			string shortcut = txtSnippet.AutoComplete.SelectedText;
			Hide();
			Scintilla.Snippets.InsertSnippet(shortcut);
		}
示例#6
0
文件: CGEeditor.cs 项目: nadar71/Krea
 private void Scintilla_AutoCompleteAccepted(object sender, AutoCompleteAcceptedEventArgs e)
 {
     this.AutoCompletionEngine.IsActive = false;
     if (this.luaSyntaxCheckerBt.Checked == true)
         this.checkLuaSyntax();
 }
示例#7
0
 private void scint_AutoCompleteAccepted(object sender, AutoCompleteAcceptedEventArgs e)
 {
     return;
 }