Beispiel #1
0
        private static void AddImporter()
        {
            AddImporterOrCountryForm form = new AddImporterOrCountryForm();

            form.ShowDialog();
            if (!Data.Importers.Contains(form.TextToAdd))
            {
                Data.Importers.Add(form.TextToAdd);
            }
        }
Beispiel #2
0
        private static void AddCountry()
        {
            AddImporterOrCountryForm form = new AddImporterOrCountryForm();

            form.ShowDialog();
            if (!Data.CountriesOfOrigin.Contains(form.TextToAdd))
            {
                Data.CountriesOfOrigin.Add(form.TextToAdd);
            }
        }