예제 #1
0
        private async void TabLayout_TabSelected(object sender, TabLayout.TabSelectedEventArgs e)
        {
            switch (e.Tab.Position)
            {
            case 0:
                items = await ItemRepo.GetLocalItemsAsync(currentUser.City);

                fragmentNavigate(new BuyItemFragment(currentUser, items));
                break;

            case 1:
                items = await ItemRepo.GetCurrentUsersItemsAsync(currentUser.Id);

                fragmentNavigate(new ViewItemsFragment(currentUser, items));
                break;
            }
        }