/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { //deleteImageTempFileName(); processor = null; if( components != null ) { components.Dispose(); } } base.Dispose( disposing ); }
private bool initDefaults() { try { activeFieldColor = Color.FromArgb( 50, Color.Blue ); initReceiptCountries(); fillCountryComboBox(); processor = new Processor(); ProcessingSettings defaultSettings = new ProcessingSettings(); countryComboBox.Text = "USA"; treatAsPhotoCheckBox.Checked = defaultSettings.TreatAsPhoto; showPrompt( "Select image file and country, then click \"Start Recognition\"", Color.Black ); imageFileTextBox.Select(); } catch( Exception exception ) { MessageBox.Show( this, exception.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error ); return false; } return true; }