void textBox_EventEditTextChange(Widget source, EventArgs e)
 {
     if (TextEdited != null)
     {
         TextEdited.Invoke(this, textBox.Caption);
     }
 }
Example #2
0
        public void EndEditing()
        {
            IsEditing = false;
            StopCaptureMouse();

            if (Text == EditingText)
            {
                return;
            }

            bool cancelEdit = false;

            TextEdited?.Invoke(Text, EditingText, ref cancelEdit);

            if (cancelEdit)
            {
                return;
            }

            Text = EditingText;
        }