/// <summary>
        /// define current type and initialize appropriate control
        /// </summary>
        /// <param name="connector"></param>
        /// <param name="url"></param>
        /// <returns></returns>
        public UserControl InitCommon(ApiConnector connector, string url)
        {
            UserControl control = new UserControl();

            if (typeof(T) == typeof(CopyrightKind))
            {
                control = new CopyrightKindLayer().InitControl(connector, url);
            }
            else if (typeof(T) == typeof(Country))
            {
                control = new CountryLayer().InitControl(connector, url);
            }
            else if (typeof(T) == typeof(CreativeRoleType))
            {
                control = new CreativeroleTypeLayer().InitControl(connector, url);
            }
            else if (typeof(T) == typeof(GenreType))
            {
                control = new GenreTypeLayer().InitControl(connector, url);
            }
            else if (typeof(T) == typeof(KlR030))
            {
                control = new Klr030Layer().InitControl(connector, url);
            }
            else if (typeof(T) == typeof(SystemConstant))
            {
                control = new SystemConstantLayer().InitControl(connector, url);
            }
            else if (typeof(T) == typeof(TypePlace))
            {
                control = new TypePlaceLayer().InitControl(connector, url);
            }

            return(control);
        }
Beispiel #2
0
 public static Boolean IsCountryEUYN(string CountryId)
 {
     return(CountryLayer.IsCountryEUYN(CountryId));
 }
Beispiel #3
0
 public static Country GetCountryById(string CountryId)
 {
     return(CountryLayer.GetCountryById(CountryId));
 }
Beispiel #4
0
 public static List <Country> GetCountry()
 {
     return(CountryLayer.GetCountry());
 }