C# Class AdventureWorks.UILogic.ViewModels.ShoppingCartPageViewModel

Inheritance: ViewModelBase
Show file Open project: PrismLibrary/Prism-Samples-Windows Class Usage Examples

Public Methods

Method Description
OnNavigatedTo ( NavigatedToEventArgs e, object>.Dictionary viewModelState ) : void
OnNavigatingFrom ( NavigatingFromEventArgs e, object>.Dictionary viewModelState, bool suspending ) : void
ShoppingCartPageViewModel ( IShoppingCartRepository shoppingCartRepository, INavigationService navigationService, IAccountService accountService, ISignInUserControlViewModel signInUserControlViewModel, IResourceLoader resourceLoader, IAlertMessageService alertMessageService, ICheckoutDataRepository checkoutDataRepository, IOrderRepository orderRepository, IEventAggregator eventAggregator ) : AdventureWorks.UILogic.Models
UpdateShoppingCartAsync ( object notUsed ) : void

Private Methods

Method Description
CalculateDiscount ( ) : double
CalculateFullPrice ( ) : double
CanCheckout ( ) : bool
CanDecrementCount ( ) : bool
CheckoutAsync ( ) : System.Threading.Tasks.Task
DecrementCount ( ) : System.Threading.Tasks.Task
GoToNextPageAsync ( ) : System.Threading.Tasks.Task
IncrementCount ( ) : System.Threading.Tasks.Task
Remove ( AdventureWorks.UILogic.ViewModels.ShoppingCartItemViewModel item ) : System.Threading.Tasks.Task
ResolveNavigationActionAsync ( ) : Task
ShoppingCartItemViewModel_PropertyChanged ( object sender, System e ) : void
UpdateShoppingCartInfoAsync ( ) : System.Threading.Tasks.Task

Method Details

OnNavigatedTo() public method

public OnNavigatedTo ( NavigatedToEventArgs e, object>.Dictionary viewModelState ) : void
e NavigatedToEventArgs
viewModelState object>.Dictionary
return void

OnNavigatingFrom() public method

public OnNavigatingFrom ( NavigatingFromEventArgs e, object>.Dictionary viewModelState, bool suspending ) : void
e NavigatingFromEventArgs
viewModelState object>.Dictionary
suspending bool
return void

ShoppingCartPageViewModel() public method

public ShoppingCartPageViewModel ( IShoppingCartRepository shoppingCartRepository, INavigationService navigationService, IAccountService accountService, ISignInUserControlViewModel signInUserControlViewModel, IResourceLoader resourceLoader, IAlertMessageService alertMessageService, ICheckoutDataRepository checkoutDataRepository, IOrderRepository orderRepository, IEventAggregator eventAggregator ) : AdventureWorks.UILogic.Models
shoppingCartRepository IShoppingCartRepository
navigationService INavigationService
accountService IAccountService
signInUserControlViewModel ISignInUserControlViewModel
resourceLoader IResourceLoader
alertMessageService IAlertMessageService
checkoutDataRepository ICheckoutDataRepository
orderRepository IOrderRepository
eventAggregator IEventAggregator
return AdventureWorks.UILogic.Models

UpdateShoppingCartAsync() public method

public UpdateShoppingCartAsync ( object notUsed ) : void
notUsed object
return void