예제 #1
0
        public MascotaViewModel()
        {
            this.repo = new RepositoryMascotas();
            List <Mascota> lista = this.repo.GetMascotas();

            this.Mascotas = new ObservableCollection <Mascota>(lista);
        }
예제 #2
0
        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;
        }
예제 #3
0
 public MascotaModel()
 {
     this.repo    = new RepositoryMascotas();
     this.Mascota = new Mascota();
 }