Exemple #1
0
        public override bool Equals(object obj)
        {
            PlaceModel pm = (PlaceModel)obj;

            if (this.ID == pm.ID && this.Name == pm.Name)
            {
                return(true);
            }
            return(false);
        }
Exemple #2
0
 public static PlaceModel[] GetDistricts(PlaceModel province, PlaceModel city)
 {
     return(GetPlaceList(string.Format("http://www.weather.com.cn/data/city3jdata/station/{0}{1}.html", province.ID, city.ID)));
 }
Exemple #3
0
 public static PlaceModel[] GetCitys(PlaceModel province)
 {
     return(GetPlaceList(string.Format("http://www.weather.com.cn/data/city3jdata/provshi/{0}.html", province.ID)));
 }