/// <summary> /// 从网络开始获取 /// </summary> /// <param name="cityId"></param> public void GetFromNet() { siteCollection = fun.SelectSites(); currentCity = fun.SelectCitys().First(a => a.Id == App.ViewModel.Config.CityId); SiteNetGet(currrentGetIndex); }
/// <summary> /// 删除城市 /// </summary> /// <param name="city"></param> /// <returns></returns> public bool DeleteCity(City city) { b_data.T_City.DeleteOnSubmit(city); bool result = false; try { b_data.SubmitChanges(); result = true; } catch (Exception e) { //todo } return result; }