예제 #1
0
        async Task ExecuteLoadItemsCommand()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            try
            {
                UserTests.Clear();
                var items = await GetFriends();

                //  var items = new List<UserTest>() { new UserTest() { Id = 1, UserId = "vse ok", Text="ok i will go eat" } };
                foreach (var item in items)
                {
                    UserTests.Add(item);
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }