Пример #1
0
 /*        private void Load_Cities()
 {
     CityClass ci = new CityClass();
     ListView1.DataSource = ci.printCities(countryName);
     ListView1.DataBind();
 }
 */
 private void Load_ThingsToDo()
 {
     try
     {
     ThingsToDoClass t = new ThingsToDoClass();
     ListView2.DataSource = t.printThingsToDo(cityName);
     ListView2.DataBind();
     }
     catch (Exception ex) {
         Console.WriteLine(ex.ToString());
     }
 }
Пример #2
0
 //copy
 public ThingsToDoClass(ThingsToDoClass ThingsToDo)
 {
     nameThingsToDo = ThingsToDo.NameThingsToDo;
     addressThingsToDo = ThingsToDo.AddressThingsToDo;
 }