Example #1
0
 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);
     }
 }
 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 {
     }
 }
Example #3
0
 protected virtual void OnTboxSearchTextDeleted(object o, Gtk.TextDeletedArgs args)
 {
     Search();
 }
Example #4
0
        private 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 ();
        }
Example #5
0
 protected void OnEntryIDTextDeleted(object o, TextDeletedArgs args)
 {
     SetID ();
 }