Ejemplo n.º 1
0
 public OcrApiServiceForm()
 {
     _formManager = new OcrApiServiceManager();
     _formModel   = _formManager.LoadLastRequest();
     InitializeComponent();
     SetControlsNames();
     _apiCodeTextBox.Text      = _formModel.ApiKey;
     _languageCodeTextBox.Text = _formModel.LanguageCode;
     _selectFileTextBox.Text   = _formManager.GetFilePath(_formModel);
 }
Ejemplo n.º 2
0
 public OcrApiServiceForm()
 {
     _formManager = new OcrApiServiceManager();
     _formModel = _formManager.LoadLastRequest();
     InitializeComponent();
     SetControlsNames();
     _apiCodeTextBox.Text = _formModel.ApiKey;
     _languageCodeTextBox.Text = _formModel.LanguageCode;
     _selectFileTextBox.Text = _formManager.GetFilePath(_formModel);
 }
 public OcrApiServiceForm()
 {
     _formManager = new OcrApiServiceManager();
     _formModel = _formManager.LoadLastRequest();
     InitializeComponent();
     _errorProvider.SetIconPadding(_selectFileTextBox, -20);
     // Sets control text from the resources
     SetControlsNames();
     // Adds existing language codes to combobox
     _languageCodeComboBox.Items.AddRange(_formManager.GetCodes().ToArray());
     // Fills form from model
     _apiCodeTextBox.Text = _formModel.ApiKey;
     _languageCodeComboBox.Text = _formModel.LanguageCode;
     _selectFileTextBox.Text = _formManager.GetFilePath(_formModel);
 }
Ejemplo n.º 4
0
 public OcrApiServiceForm()
 {
     _formManager = new OcrApiServiceManager();
     _formModel   = _formManager.LoadLastRequest();
     InitializeComponent();
     _errorProvider.SetIconPadding(_selectFileTextBox, -20);
     // Sets control text from the resources
     SetControlsNames();
     // Adds existing language codes to combobox
     _languageCodeComboBox.Items.AddRange(_formManager.GetCodes().ToArray());
     // Fills form from model
     _apiCodeTextBox.Text       = _formModel.ApiKey;
     _languageCodeComboBox.Text = _formModel.LanguageCode;
     _selectFileTextBox.Text    = _formManager.GetFilePath(_formModel);
 }