Esempio n. 1
0
 void OnTextDeleted(object o, TextDeletedArgs args)
 {
     if (args.StartPos != args.EndPos)
     {
         UndoManager.AddUndoAction(new EditableEraseAction(editable, args.StartPos, args.EndPos));
     }
 }
Esempio n. 2
0
 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 {
     }
 }
Esempio n. 3
0
    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)
        {
        }
    }
Esempio n. 4
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);
            }
        }
Esempio n. 5
0
        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);
            }
        }
Esempio n. 6
0
        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();
        }
Esempio n. 7
0
 private void EntryTextChanges(object o, TextDeletedArgs args)
 {
     EntryTextChanges(o, EventArgs.Empty as TextInsertedArgs);
 }
Esempio n. 8
0
 private void _nameEntry_TextDeleted(object o, TextDeletedArgs args)
 {
     NameTextChanged();
 }
Esempio n. 9
0
 protected void OnEntryQueryTextDeleted(object o, TextDeletedArgs args)
 {
     RunQuery();
 }
Esempio n. 10
0
 public void TextUpdated(object o, TextDeletedArgs args) => TextUpdated(o, TextInsertedArgs.Empty as TextInsertedArgs);
Esempio n. 11
0
 protected void InputTextDeleted(object o, TextDeletedArgs args)
 {
     Calculate();
 }