using System; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CMS.FormControls; public partial class CMSFormControls_SimpleCountrySelector : FormEngineUserControl { #region "Properties" /// /// Gets or sets state enable. /// public override bool Enabled { get { return countrySelector.Enabled; } set { countrySelector.Enabled = value; } } /// /// Gets or sets the value which indicates whether the selector should load all data to DDL. /// public bool DisplayAllItems { get { return countrySelector.DisplayAllItems; } set { countrySelector.DisplayAllItems = value; } } /// /// Add '(none)' record to the dropdownlist. /// public bool AddNoneRecord { get { return countrySelector.AddNoneRecord; } set { countrySelector.AddNoneRecord = value; } } /// /// Add '(select country)' record to the dropdownlist. /// public bool AddSelectCountryRecord { get { return countrySelector.AddSelectCountryRecord; } set { countrySelector.AddSelectCountryRecord = value; } } /// /// Set/get Value property in the form 'CountryName;StateName' or 'CountryID;StateID' /// public bool UseCodeNameForSelection { get { return countrySelector.UseCodeNameForSelection; } set { countrySelector.UseCodeNameForSelection = value; } } /// /// Selected country ID. /// public int CountryID { get { return countrySelector.CountryID; } set { countrySelector.CountryID = value; } } /// /// Selected Country name. /// public string CountryName { get { return countrySelector.CountryName; } set { countrySelector.CountryName = value; } } /// /// Gets or sets field value. /// public override object Value { get { return countrySelector.Value; } set { countrySelector.Value = value; } } /// /// Returns the DDL with countries. /// public DropDownList CountryDropDown { get { return countrySelector.CountryDropDown; } } /// /// Gets client ID of the country drop down list. /// public override string ValueElementID { get { return countrySelector.ValueElementID; } } #endregion #region "Page Events" protected void Page_Load(object sender, EventArgs e) { } #endregion }