private void FrmIndividualsIdentificationExtraction_Load(object sender, EventArgs e) { SuspendLayout(); if (!string.IsNullOrEmpty(CurrentInternalReport.ImagePath)) { LoadImage(CurrentInternalReport.ImagePath); } Properties.Settings.Default.PropertyChanged += Default_PropertyChanged; pbOriginal.ImagePortionCopied += PbOriginal_ImagePortionCopied; //TODO: Probably quicker caching the results of langs? foreach (string lang in langs.GetAvailableLanguages()) { cbSpokenLanguage.Items.Add(lang); } foreach (string lang in langs.GetAvailableLanguages()) { cbWrittenLanguage.Items.Add(lang); } foreach (string lang in langs.GetAvailableLanguages()) { cbNationality.Items.Add(lang); } foreach (string ethnicCode in ethnicities.GetAvailableEthnicCodes()) { cbEthnicityCodes.Items.Add(ethnicCode); } foreach (string sex in gender.GetAllSexes()) { cbSex.Items.Add(sex); } ResumeLayout(); }