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); } }
/// <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(); }
private void Scintilla_AutoCompleteAccepted(object sender, AutoCompleteAcceptedEventArgs e) { this.AutoCompletionEngine.IsActive = false; if (this.luaSyntaxCheckerBt.Checked == true) this.checkLuaSyntax(); }
private void scint_AutoCompleteAccepted(object sender, AutoCompleteAcceptedEventArgs e) { return; }