예제 #1
0
 public MainWindowVM()
 {
     SuperHeroeActual  = 1;
     _servicio         = new ServicioSuperheroe();
     NuevoSuperHeroe   = new Superheroe();
     ListaSuperheroes  = _servicio.ObtenerSuperHeroes();
     NumeroSuperHeroes = ListaSuperheroes.Count;
 }
예제 #2
0
 public MainWindow()
 {
     InitializeComponent();
     Superheroe    s = new Superheroe();
     Configuracion c = new Configuracion();
 }
예제 #3
0
 public void VaciarSuperHeroe()
 {
     NuevoSuperHeroe = new Superheroe(); //Heroe = true
 }
예제 #4
0
 public void AñadirSuperHeroe()
 {
     ListaSuperheroes.Add(NuevoSuperHeroe);
     NumeroSuperHeroes++;
     NuevoSuperHeroe = new Superheroe(); //Heroe = true
 }