public ShoesDetailViewModel(IShoesDataService shoesDataService, IDialogService dialogService) { this.shoesDataService = shoesDataService; this.dialogService = dialogService; Messenger.Default.Register <Shoe>(this, OnShoeReceived); SaveCommand = new CustomCommand(SaveShoe, CanSaveShoe); DeleteCommand = new CustomCommand(DeleteShoe, CanDeleteShoe); }
public ShoesOverviewViewModel(IShoesDataService shoesDataService, IDialogService dialogService) { this.shoesDataService = shoesDataService; this.dialogService = dialogService; LoadCommands(); LoadData(); Messenger.Default.Register <UpdateListMessage>(this, OnUpdateListMessageReceived); }