public ProductsReportPageViewModel(Services.INorthwindService northwindService) { this.northwindService = northwindService; northwindService.GetProductsAsync(10) .ContinueWith(antc => this.Products = antc.Result.OrderBy(c => c.UnitPrice).ToArray(), System.Threading.Tasks.TaskScheduler.FromCurrentSynchronizationContext()); }
public CustomerDetailsPageViewModel(Services.INorthwindService northwindService, INavigationService navigationService) { this.northwindService = northwindService; this.navigationService = navigationService; acceptCommand = new DelegateCommand(OnAcceptEdit); cancelCommand = new DelegateCommand(OnCancelEdit); }
public MainPageViewModel(Services.INorthwindService northwindService, INavigationService navigationService) { this.northwindService = northwindService; this.navigationService = navigationService; northwindService.GetCustomersAsync() .ContinueWith(antc => this.Customers = antc.Result, System.Threading.Tasks.TaskScheduler.FromCurrentSynchronizationContext()); addNewCommand = new DelegateCommand(AddNewCustomer); editCustomerCommand = new DelegateCommand(EditCustomer, IsCustomerAvailable); editCustomerCommand.ObservesProperty(() => this.SelectedCustomer); deleteCustomerCommand = new DelegateCommand(DeleteCustomer, IsCustomerAvailable); deleteCustomerCommand.ObservesProperty(() => this.SelectedCustomer); detailsCommand = new DelegateCommand(ShowDetails); }
public ListPageModel(Services.INorthwindService northwindService) { this.northwindService = northwindService; }
public ListPageModel(Services.INorthwindService northwindService) { this.northwindService = northwindService; this.deleteCommand = new Command <Customer>(DeleteCustomer); }
public DataGridPageModel(Services.INorthwindService northwindService) { this.northwindService = northwindService; }
public CustomerDetailsPageModel(Services.INorthwindService northwindService) { this.northwindService = northwindService; }
public CustomerDetailsPageModel(Services.INorthwindService northwindService) { this.northwindService = northwindService; this.saveCommand = new Command(OnSave); this.cancelCommand = new Command(OnCancel); }