public Common_AreaListVD(string prefixes, Base_AreaXmlVD areaInfo, string userProvince, string userCity, string userDistrict, AreaXML_Provinces topProvince = null, AreaXML_Cities topCity = null, AreaXML_Districts topDistrict = null, bool hideDistrict = false, bool showProvinceAllButton = false, bool showCityAllButton = false) { Prefixes = prefixes; Provinces = areaInfo.Provinces; Cities = areaInfo.Cities; Districts = areaInfo.Districts; UserProvince = userProvince; UserCity = userCity; UserDistrict = userDistrict; //如果首项为空,则ID设为-1 topProvince = topProvince ?? new AreaXML_Provinces(-1, "", "", ""); topCity = topCity ?? new AreaXML_Cities(-1, 0, "", "", "", 0); topDistrict = topDistrict ?? new AreaXML_Districts(-1, 0, ""); TopProvince = topProvince; TopCity = topCity; TopDistrict = topDistrict; HideDistrict = hideDistrict; ShowProvinceAllButton = showProvinceAllButton; ShowCityAllButton = showCityAllButton; }
public Common_AreaListVD(Base_AreaXmlVD areaInfo, string userProvince, string userCity, string userDistrict) : this(null, areaInfo, userProvince, userCity, userDistrict) { }