public MainWindowVM() { SuperHeroeActual = 1; _servicio = new ServicioSuperheroe(); NuevoSuperHeroe = new Superheroe(); ListaSuperheroes = _servicio.ObtenerSuperHeroes(); NumeroSuperHeroes = ListaSuperheroes.Count; }
public MainWindow() { InitializeComponent(); Superheroe s = new Superheroe(); Configuracion c = new Configuracion(); }
public void VaciarSuperHeroe() { NuevoSuperHeroe = new Superheroe(); //Heroe = true }
public void AƱadirSuperHeroe() { ListaSuperheroes.Add(NuevoSuperHeroe); NumeroSuperHeroes++; NuevoSuperHeroe = new Superheroe(); //Heroe = true }