Ejemplo n.º 1
0
        public async Task HandleAsync(LogOnEvent message, CancellationToken cancellationToken)
        {
            _itemTypeList.ItemTypeList = await _itemsEndPoint.GetItemTypesInfo();

            _currencyTypeListModel.Currencies = await _moneysEndPoint.GetAllCurrencyTypes();

            NotifyOfPropertyChange(() => IsAdminMenuVisible);
            NotifyOfPropertyChange(() => IsMenuBarVisible);
            await CheckAddToScreensAndLoad(_myAccountViewModel);
        }
        protected override async Task OnActivateAsync(CancellationToken cancellationToken)
        {
            await base.OnActivateAsync(cancellationToken);

            _itemTypeList.ItemTypeList = await _itemsEndPoint.GetItemTypesInfo();

            _itemTypeBindableList.Clear();
            _itemTypeBindableList.AddRange(_itemTypeList.ItemTypeList);

            UserMoney = await _moneysEndPoint.GetUserMoneyByID();

            UnitPrice    = 0;
            BuyingAmount = 0;
        }