Пример #1
0
        public async Task LoadDataAsync(MasterDetailsViewState viewState)
        {
            try
            {
                Source.Clear();

                _entlist = await entService.GetEnterprisesByOwner();

                _entlist.ForEach(ent => { Source.Add(ent); });


                if (viewState == MasterDetailsViewState.Both)
                {
                    if (Source.Count > 0)
                    {
                        Selected = Source.First();
                    }
                }
            } catch (Exception)
            {
                toastService.ShowToast("Er ging iets mis", "probeer later opnieuw");
            }
        }