public void AddCountry()
        {
            var name = "Country " + Countries.Count;

            CountryNames.Add(name);
            Countries.Add(new CountryData()
            {
                Id = Countries.Count + 1, Name = name
            });
        }
示例#2
0
 public void Add(string name)
 {
     CountryNames.Add(name);
     IsNoCountry = false;
 }