public MascotaViewModel() { this.repo = new RepositoryMascotas(); List <Mascota> lista = this.repo.GetMascotas(); this.Mascotas = new ObservableCollection <Mascota>(lista); }
public Inicio() { InitializeComponent(); this.repo = new RepositoryMascotas(); this.botonActualizar.Clicked += BotonActualizar_ClickedAsync; this.botonBuscar.Clicked += BotonBuscar_ClickedAsync; this.botonEliminar.Clicked += BotonEliminar_ClickedAsync; this.botonMostrar.Clicked += BotonMostrar_ClickedAsync; this.botonNuevaMascota.Clicked += BotonNuevaMascota_ClickedAsync; }
public MascotaModel() { this.repo = new RepositoryMascotas(); this.Mascota = new Mascota(); }