Example #1
0
 private void Load_Cities()
 {
     try
     {
         CityClass ci = new CityClass();
         ListView1.DataSource = ci.printCities(countryName);
         ListView1.DataBind();
     }
     catch (Exception ex) { }
 }
Example #2
0
 private void Load_Cities()
 {
     try
     {
         CityClass ci = new CityClass();
         ListView1.DataSource = ci.printCities(countryName);
         ListView1.DataBind();
     }
     catch (Exception ex) {
         Console.WriteLine(ex.ToString());
     }
 }
Example #3
0
 public void Load_DropDownList_City()
 {
     CityClass ci = new CityClass();
     ArrayList list = ci.ArrayCities(countryActive);
     string item;
     FavoriteCityList.Items.Clear();
     FavoriteCityList.Items.Add(new ListItem("", ""));
     for (int i = 0; i < list.Count; i++)
     {
         item = list[i].ToString();
         FavoriteCityList.Items.Add(new ListItem(item, item));
     }
     FavoriteCityList.DataBind();
 }
Example #4
0
 public CityClass(CityClass city)
 {
     nameCity = city.nameCity;
     idCity = city.IdCidty;
 }