コード例 #1
0
        private void LoadData()
        {
            this.IsLoading = true;
            this.JobExecuteResultList.Clear();

            Task.Factory.StartNew(() =>
            {
                var list = this.ClientService.JobService.QueryJobExecuteResult(this.Job.ID, 20);

                this.IsLoading = false;

                this.InvokeOnUIDispatcher(() =>
                {
                    foreach (var item in list)
                    {
                        var model = new JobExecuteModel();
                        model.SetData(item);

                        this.JobExecuteResultList.Add(model);
                    }
                });
            });
        }