public PetDetailsViewModel(IPetsInLoveApiService petsInLoveApiService, Pet Pet) { this.Pet = Pet; CallCommand = new Command(ExecuteCallCommand); EmailCommand = new Command(ExecuteEmailCommand); OpenMapCommand = new Command(ExecuteOpenMapCommand); }
public MainViewModel(IPetsInLoveApiService petsInLoveApiService) { _petsInLoveApiService = petsInLoveApiService; Pets = new ObservableCollection <Pet>(); RefreshCommand = new Command(() => LoadPets(null)); // Sempre atualizar AboutCommand = new Command(ExecuteAboutCommand); SearchCommand = new Command(ExecuteSearchCommand); AddCommand = new Command(ExecuteAddCommand); PetDetailsCommand = new Command <Pet>(ExecutePetDetailsCommand); LoadPets(null); Title = "Pets In Love"; }
public AddPetViewModel(IPetsInLoveApiService petsInLoveApiService) { _petsInLoveApiService = petsInLoveApiService; this.Pet = new Pet(); RegisterCommand = new Command(ExecuteRegisterCommand); }
public AboutViewModel(IPetsInLoveApiService petsInLoveApiService) { _petsInLoveApiService = petsInLoveApiService; }
public SearchViewModel(IPetsInLoveApiService petsInLoveApiService) { _petsInLoveApiService = petsInLoveApiService; SearchCommand = new Command(ExecuteSearchCommand); }