async void CreateMonkeyCollection()
        {
            MonkeysWebServiceProxy proxy      = new MonkeysWebServiceProxy();
            List <Monkey>          theMonkeys = await proxy.GetAllMonkeysAsync();

            foreach (Monkey m in theMonkeys)
            {
                this.MonkeyList.Add(m);
            }
        }
예제 #2
0
        private async void CreateMonkeysList()
        {
            MonkeysWebServiceProxy proxy = new MonkeysWebServiceProxy();
            List <Monkey>          m     = await proxy.GetAllMonkeysAsync();

            foreach (Monkey o in m)
            {
                MonkeyList.Add(o);
            }
        }
        async void RefreshMonkeys()
        {
            MonkeysWebServiceProxy proxy      = new MonkeysWebServiceProxy();
            List <Monkey>          theMonkeys = await proxy.GetAllMonkeysAsync();

            this.MonkeyList.Clear();
            foreach (Monkey m in theMonkeys)
            {
                this.MonkeyList.Add(m);
            }
            this.IsRefreshing = false;
        }