コード例 #1
0
        protected override async System.Threading.Tasks.Task OnLoadAsync(int Model)
        {
            DateTime start, stop;

            start = DateTime.Now;
            await ProduceOrders.LoadAsync();

            await HarvestOrders.LoadAsync();

            await BuildOrders.LoadAsync();

            await Cells.LoadAsync();

            await Workers.LoadAsync();

            await Buildings.LoadAsync();

            await MapItems.LoadAsync(Cells.Union <ILocationViewModel>(Buildings).Union(Workers));

            stop = DateTime.Now;

            LoadDuration = stop - start;
        }