コード例 #1
0
        private void UpdateCore()
        {
            this.IsReloading = true;
            AMing.Plugins.Core.Helper.ThreadHelper threadHelper = new Plugins.Core.Helper.ThreadHelper();
            threadHelper.Background(async() =>
            {
                await Task.Delay(400);
                var allListViewModel = this.allBattleResult.Select(x => new Item.BattleResultViewModel(x)).ToList();

                var list = allListViewModel
                           .Where(this.GetShipFilter.Predicate)
                           .Where(this.WinRankFilter.Predicate)
                           .Where(this.DateFilter.Predicate);

                this.BattleList = this.SortWorker.Sort(list).Select((x, i) =>
                {
                    x.Index = i + 1;
                    return(x);
                }).ToList();

                this.IsReloading = false;
            });
        }
コード例 #2
0
        private void UpdateCore()
        {
            this.IsReloading = true;
            AMing.Plugins.Core.Helper.ThreadHelper threadHelper = new Plugins.Core.Helper.ThreadHelper();
            threadHelper.Background(async () =>
            {
                await Task.Delay(400);
                var allListViewModel = this.allBattleResult.Select(x => new Item.BattleResultViewModel(x)).ToList();

                var list = allListViewModel
                    .Where(this.GetShipFilter.Predicate)
                    .Where(this.WinRankFilter.Predicate)
                    .Where(this.DateFilter.Predicate);

                this.BattleList = this.SortWorker.Sort(list).Select((x, i) =>
                {
                    x.Index = i + 1;
                    return x;
                }).ToList();

                this.IsReloading = false;
            });
        }