Ejemplo n.º 1
0
        private void _sendButton_Click(object sender, EventArgs e)
        {
            // Disables form controls
            _panel.Enabled = false;
            UseWaitCursor  = true;
            // Actoin to show response and enable form controls
            Action <string> update = (value) =>
            {
                _responseTextBox.Text = value;
                UseWaitCursor         = false;
                _panel.Enabled        = true;
            };

            // Send ocr request
            _formManager.SendImage(_formModel, update);
        }
Ejemplo n.º 2
0
 private void _sendButton_Click(object sender, EventArgs e)
 {
     _panel.Enabled        = false;
     _responseTextBox.Text = _formManager.SendImage(_formModel);
     _panel.Enabled        = true;
 }