private void BindStores() { if (UserEntity != null) { _StoreBindList = new RelationBindingList <Store>(); if (!UserEntity.IsNew) { IList <Store> lst = ClientEnvironment.UserService.GetUserStores(UserEntity.ID); if ((lst != null) && (lst.Count > 0)) { foreach (Store store in lst) { _StoreBindList.Add(store); } } } lbStores.DataSource = _StoreBindList; } }
private void BindRegions() { if (UserEntity != null) { _RegionBindList = new RelationBindingList <Domain.Region>(); if (!UserEntity.IsNew) { IList <Domain.Region> lst = ClientEnvironment.UserService.GetUserRegions(UserEntity.ID); if ((lst != null) && (lst.Count > 0)) { foreach (Domain.Region region in lst) { _RegionBindList.Add(region); } } } lbRegions.DataSource = _RegionBindList; } }
private void BindCountries() { if (UserEntity != null) { if (!UserEntity.IsNew) { _CountryBindList = new RelationBindingList <Domain.Country>(); IList <Domain.Country> lst = ClientEnvironment.UserService.GetUserCountries(UserEntity.ID); if ((lst != null) && (lst.Count > 0)) { foreach (Domain.Country country in lst) { _CountryBindList.Add(country); } } } else { _CountryBindList = new RelationBindingList <Domain.Country>(); } lbCountries.DataSource = _CountryBindList; } }
private void BindStores() { if (UserEntity != null) { _StoreBindList = new RelationBindingList<Store>(); if (!UserEntity.IsNew) { IList<Store> lst = ClientEnvironment.UserService.GetUserStores(UserEntity.ID); if ((lst != null) && (lst.Count > 0)) { foreach (Store store in lst) { _StoreBindList.Add(store); } } } lbStores.DataSource = _StoreBindList; } }
private void BindRegions() { if (UserEntity != null) { _RegionBindList = new RelationBindingList<Domain.Region>(); if (!UserEntity.IsNew) { IList<Domain.Region> lst = ClientEnvironment.UserService.GetUserRegions(UserEntity.ID); if ((lst != null) && (lst.Count > 0)) { foreach (Domain.Region region in lst) { _RegionBindList.Add(region); } } } lbRegions.DataSource = _RegionBindList; } }
private void BindCountries() { if (UserEntity != null) { if (!UserEntity.IsNew) { _CountryBindList = new RelationBindingList<Domain.Country>(); IList<Domain.Country> lst = ClientEnvironment.UserService.GetUserCountries(UserEntity.ID); if ((lst != null) && (lst.Count > 0)) { foreach (Domain.Country country in lst) { _CountryBindList.Add(country); } } } else { _CountryBindList = new RelationBindingList<Domain.Country>(); } lbCountries.DataSource = _CountryBindList; } }