示例#1
0
        async void OnRefresh()
        {
            // Turn on network indicator
            this.IsBusy          = true;
            HomeView.ItemsSource = jobs;
            try
            {
                var jobCollection = await entmanager.GetJobs(enterprise.Username);

                foreach (Job job in jobCollection)
                {
                    if (jobs.All(b => b.Id != job.Id))
                    {
                        //await DisplayAlert("Login", job.Title , "Cancel");
                        jobs.Add(job);
                    }
                }
            }
            finally
            {
                this.IsBusy = false;
            }
        }