private void BoxItemsUpd(List <string> list) { PersonBox.Clear(); ArtefactBox.Clear(); LocationBox.Clear(); foreach (string item in list) { for (int i = 0; i < sentences.Count; i++) { forDataUpd = sentences[i]; if (item == forDataUpd.GetSentence(item)) { Dictionary <string, string> dict = new Dictionary <string, string>(); dict = forDataUpd.GetGoogleItemsDictionary(); foreach (KeyValuePair <string, string> kvp in dict) { if (kvp.Value == "Person") { PersonBox.AppendText(kvp.Key + Environment.NewLine); } if (kvp.Value == "Location") { LocationBox.AppendText(kvp.Key + Environment.NewLine); } if (kvp.Value == "Organization") { LocationBox.AppendText(kvp.Key + Environment.NewLine); } if (kvp.Value == "Other") { ArtefactBox.AppendText(kvp.Key + Environment.NewLine); } if (kvp.Value == "WorkOfArt") { ArtefactBox.AppendText(kvp.Key + Environment.NewLine); } if (kvp.Value == "ConsumerGood") { ArtefactBox.AppendText(kvp.Key + Environment.NewLine); } if (kvp.Value == "Artefact") { ArtefactBox.AppendText(kvp.Key + Environment.NewLine); } } } } } }
public void LoadPerson(PersonalData personData) { PersonBox.LoadPerson(personData); }