private static void AddImporter() { AddImporterOrCountryForm form = new AddImporterOrCountryForm(); form.ShowDialog(); if (!Data.Importers.Contains(form.TextToAdd)) { Data.Importers.Add(form.TextToAdd); } }
private static void AddCountry() { AddImporterOrCountryForm form = new AddImporterOrCountryForm(); form.ShowDialog(); if (!Data.CountriesOfOrigin.Contains(form.TextToAdd)) { Data.CountriesOfOrigin.Add(form.TextToAdd); } }