Exemple #1
0
        public BrandSectionFamilySizeGroupViewModelViewModel()
        {
            Client.GetAllBrandsAsync(LoggedUserInfo.Iserial);

            Client.GetAllBrandsCompleted += (d, s) =>
            {
                BrandList = s.Result;
            };

            lkpClient.GetTblBrandSectionLinkCompleted += (s, sv) =>
            {
                BrandSectionList.Clear();
                foreach (var row in sv.Result)
                {
                    BrandSectionList.Add(row.TblLkpBrandSection1);
                }
            };
            lkpClient.GetTblFamilyLinkCompleted += (s, sv) =>
            {
                FamilyList.Clear();
                foreach (var row in sv.Result)
                {
                    FamilyList.Add(row.TblFamily1);
                }
            };
        }