コード例 #1
0
        private void FillCity(System.Guid ProvinceId)
        {
            cmbCity.DataSource = null;
            cmbCity.Items.Clear();

            string sql = " ProvinceId = '" + ProvinceId.ToString() + "'";

            CityEx.LoadCombo(ref cmbCity, "CityName", true, true, String.Empty, sql);
        }
コード例 #2
0
        private void FillCityList(Guid provinceId)
        {
            var sql = String.Format("ProvinceId = '{0}'", provinceId.ToString());

            CityEx.LoadCombo(ref cboCity, "CityName", true, true, "", sql);
        }