protected void InitCityData(int idCity)
 {
     if (idCity > 0)
     {
         CityData cd = null;
         try
         {
             using (SMGeo.ServiceClient serv = new ServiceClient())
             {
                 cd = serv.getCityData(idCity);
                 if (cd != null)
                 {
                     _countries = new CountriesCollectionModel(cd.CountryData.CountryID);
                     _states    = new StatesRegionsCollectionModel(cd.CountryData.CountryID, cd.StateRegionData.StateRegionID);
                     if (cd.StateRegionData.StateRegionID > 0)
                     {
                         _cities = new CitiesCollectionModel("S", cd.StateRegionData.StateRegionID, cd.IDCity);
                     }
                     else
                     {
                         _cities = new CitiesCollectionModel("C", cd.CountryData.CountryID, cd.IDCity);
                     }
                 }
             }
         }
         catch
         {
         }
     }
 }
        //private String _cssBox;
        //public String cssBox
        //{
        //    get { return _cssBox; }
        //}
        //private String _cssMain;
        //public String cssMain
        //{
        //    get { return _cssMain; }
        //}
        //protected override List<String> CreateListIDS()
        //{
        //    //List<String> _lstIDS = base.CreateListIDS();
        //    //_lstIDS.Add("Nostra_LBL_ALL_CITIES");

        //    return _lstIDS;
        //}
        public void SetCountry(int idCountry)
        {
            if (_countries == null)
            {
                _countries = new CountriesCollectionModel(idCountry);
            }
            else
            {
                _countries.SetSelection(idCountry);
            }
            _states = new StatesRegionsCollectionModel(idCountry);
            _cities = new CitiesCollectionModel();
        }
 public GeoPlaceCollections(int IDCountry, int IDState)
 {
     _countries = new CountriesCollectionModel(IDCountry);
     _states    = new StatesRegionsCollectionModel(IDCountry, IDState);
     if (IDState == 0)
     {
         _cities = new CitiesCollectionModel("C", IDCountry);
     }
     else
     {
         _cities = new CitiesCollectionModel("S", IDState);
     }
 }
        public GeoPlaceCollections(int IDCity)
        {
            if (IDCity > 0)
            {
                _idCity = IDCity;
                InitCityData(_idCity);

                //_cssBox =  "EP_BoxContainer_Edit";
                //_cssMain = "EP_Main_Edit";
            }
            else
            {
                _countries = new CountriesCollectionModel();
                _states    = new StatesRegionsCollectionModel(0);
                _cities    = new CitiesCollectionModel();
                //_cssBox = "EP_BoxContainer";
                //_cssMain = "EP_Main";
            }
        }