HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/TDijk1/erp-apps.eu/wwwroot/App_Code/Pux/Controls/CountryFormSelector.cs
using CMS.FormControls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Pux.Controls
{
    public abstract class CountryFormSelector : FormEngineUserControl
    {
        protected List<string> AllowedCountriesList { get; set; }

        public string AllowedCountries
        {
            get
            {
                return GetStringValue("AllowedCountries");
            }
            set
            {
                SetValue("AllowedCountries", value);
                AllowedCountriesList = value.Split(';').Where(p => !string.IsNullOrEmpty(p)).ToList();
            }
        }

        public int DefaultCountryID { get; set; }
        public string DefaultValueText { get; set; }

        public abstract void ReloadData();
    }
}