void OnTextDeleted(object o, TextDeletedArgs args) { if (args.StartPos != args.EndPos) { UndoManager.AddUndoAction(new EditableEraseAction(editable, args.StartPos, args.EndPos)); } }
protected void OnEntryServerTextDeleted(object o, TextDeletedArgs args) { try { if (entryName.Text.Remove(args.StartPos, args.EndPos - args.StartPos) == entryServer.Text) { entryName.Text = entryServer.Text; } } catch { } }
protected void OnSpinNTextDeleted(object o, TextDeletedArgs args) { string temp = spinN.Text; Console.WriteLine(DateTime.Now.ToString("[HH:mm:ss.fff] ") + "OnSpinNTextDeleted Event fired"); Console.WriteLine(DateTime.Now.ToString("[HH:mm:ss.fff] ") + "Value taken: " + temp); try { spinR.SetRange(0, Convert.ToDouble(temp)); } catch (FormatException) { } }
private void OnBufferDeleteRange(object o, DeleteRangeArgs args) { TextDeletedHandler handler = TextDeleted; if (handler != null) { TextDeletedArgs raise_args = new TextDeletedArgs(); raise_args.Args = new object [] { args.Start.Offset, args.End.Offset }; handler(this, raise_args); } }
void OnBufferDeleteRange(object o, DeleteRangeArgs args) { var handler = TextDeleted; if (handler != null) { var raise_args = new TextDeletedArgs { Args = new object[] { args.Start.Offset, args.End.Offset } }; handler(this, raise_args); } }
void HandleEntryTextDeleted(object sender, TextDeletedArgs args) { int length = args.EndPos - args.StartPos; //Log.DebugFormat ("start {0} end {1} len {2} last {3}", args.StartPos, args.EndPos, length, last_entry_text); string txt = length < 0 ? last_entry_text : last_entry_text.Substring(args.StartPos, length); for (int i = 0; i < txt.Length; i++) { if (txt [i] == '(') { open_parens--; } else if (txt [i] == ')') { close_parens--; } } last_entry_text = entry.Text; QueueUpdate(); }
private void EntryTextChanges(object o, TextDeletedArgs args) { EntryTextChanges(o, EventArgs.Empty as TextInsertedArgs); }
private void _nameEntry_TextDeleted(object o, TextDeletedArgs args) { NameTextChanged(); }
protected void OnEntryQueryTextDeleted(object o, TextDeletedArgs args) { RunQuery(); }
public void TextUpdated(object o, TextDeletedArgs args) => TextUpdated(o, TextInsertedArgs.Empty as TextInsertedArgs);
protected void InputTextDeleted(object o, TextDeletedArgs args) { Calculate(); }