public AccionParqueoViewModel() { instance = this; navigationService = new NavigationService(); dialogService = new DialogService(); apiService = new ApiService(); IsEnabled = true; }
public AccionParqueoViewModel(Parking parking, string TitleBtn) { this.parking = parking; instance = this; navigationService = new NavigationService(); dialogService = new DialogService(); apiService = new ApiService(); Descripcion = parking.Descripcion; Direccion = parking.Direccion; NumeroZonas = parking.NumeroZonas; this.TitleBtn = TitleBtn; IsEnabled = true; }
async void GoNewParking() { ActionParking = new AccionParqueoViewModel(); ActionParking.TitleBtn = "Agregar"; await navigationService.NavigateOnMaster("AccionParqueoView"); }