private void TextViewTextChanged(object sender, EventArgs e)
            {
                if (_outputCount > 0)
                {
                    return;
                }

                var updateScheduler = UpdateScheduler.Begin();

                try
                {
                    _input(_converter.ConvertInput(_control.Text));
                }
                finally
                {
                    if (updateScheduler != null)
                    {
                        _inputCount++;
                        try
                        {
                            foreach (var update in updateScheduler.End())
                            {
                                update();
                            }
                        }
                        finally
                        {
                            _inputCount--;
                        }
                    }
                }
            }
Esempio n. 2
0
 private void TextEditingChanged(object sender, EventArgs e)
 {
     _input(_converter.ConvertInput(_control.Text));
 }
 private void NumberPickerValueChanged(object sender, EventArgs e)
 {
     _input(_converter.ConvertInput(_control.Value));
 }