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);
        }
Esempio n. 2
0
        public ShoesOverviewViewModel(IShoesDataService shoesDataService, IDialogService dialogService)
        {
            this.shoesDataService = shoesDataService;
            this.dialogService    = dialogService;

            LoadCommands();
            LoadData();

            Messenger.Default.Register <UpdateListMessage>(this, OnUpdateListMessageReceived);
        }