示例#1
0
        public async void Init()
        {
            await Task.WhenAll(viewModel.LoadNewestBuyOrRentList(), viewModel.LoadNewestNeedtoBuyOrRentList(), viewModel.LoadProjectList(), viewModel.LoadNewFurnitureProducts(), viewModel.LoadLiquidationList());

            MessagingCenter.Subscribe <AddLiquidationPage>(this, "OnSaveItem", async(sender) => await viewModel.LoadLiquidationList());
            MessagingCenter.Subscribe <LiquidationDetailPage, Guid>(this, "OnDeleted", async(sender, liquidationId) =>
            {
                if (viewModel.Liquidations.Any(x => x.Id == liquidationId))
                {
                    await viewModel.LoadLiquidationList();
                }
            });
            loadingPopup.IsVisible = false;
        }