public MainWindow() { superheroes = Superheroe.GetSamples(); Indice = 0; InitializeComponent(); ActualizaContador(); }
public MainWindow() { InitializeComponent(); superheroes = Superheroe.GetSamples(); contenedor.DataContext = superheroes; actualTextBlock.Text = "1"; totalTextBlock.Text = superheroes.Count.ToString(); superheroe = new Superheroe(); contenedorNuevoSuperheroe.DataContext = superheroe; }
public MainWindow() { InitializeComponent(); superheroe = new Superheroe { // Marcamos predeterminado el RadioButton de Héroe Heroe = true }; superheroes = Superheroe.GetSamples(); ActualizaVista(cambiaPag.actual); nuevoSuperheroe.DataContext = superheroe; }