Exemplo n.º 1
0
        public RazasViewModel()
        {
            RepositoryRazas repo  = new RepositoryRazas();
            List <Raza>     lista = repo.GetRazas();

            this.Razas = new ObservableCollection <Raza>(lista);
        }
Exemplo n.º 2
0
 public MainPage()
 {
     InitializeComponent();
     this.repo = new RepositoryRazas();
     this.repo.CrearBBDD();
     this.btneliminar.Clicked  += Btneliminar_Clicked;
     this.btnmodificar.Clicked += Btnmodificar_Clicked;
     this.btnmostrar.Clicked   += Btnmostrar_Clicked;
     this.btnnuevo.Clicked     += Btnnuevo_Clicked;
 }
 public RazaModel()
 {
     this.repo = new RepositoryRazas();
     this.Raza = new Raza();
 }