Example #1
0
 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;
     }
 }
Example #2
0
 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;
     }
 }
Example #3
0
        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;
            }
        }
Example #4
0
 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;
     }
 }
Example #5
0
 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;
     }
 }
Example #6
0
        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;
            }
        }