示例#1
0
        private async void OnSearch(string query)
        {
            List <Shoes> shoes = await genericRepoShoes.FindProductsByNameAsync(query);

            Shoes = new ObservableCollection <Shoes>(shoes);
        }
        private async void OnSearch(string query)
        {
            List <TShirt> tShirts = await genericRepoTShirt.FindProductsByNameAsync(query);

            TShirts = new ObservableCollection <TShirt>(tShirts);
        }
        private async void OnSearch(string query)
        {
            List <Jacket> jackets = await genericRepoJackets.FindProductsByNameAsync(query);

            Jackets = new ObservableCollection <Jacket>(jackets);
        }
        private async void OnSearch(string query)
        {
            List <Jeans> jeans = await genericRepoJeans.FindProductsByNameAsync(query);

            Jeans = new ObservableCollection <Jeans>(jeans);
        }