public MainWindow()
 {
     superheroes = Superheroe.GetSamples();
     Indice      = 0;
     InitializeComponent();
     ActualizaContador();
 }
Exemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     superheroes            = Superheroe.GetSamples();
     contenedor.DataContext = superheroes;
     actualTextBlock.Text   = "1";
     totalTextBlock.Text    = superheroes.Count.ToString();
     superheroe             = new Superheroe();
     contenedorNuevoSuperheroe.DataContext = superheroe;
 }
Exemplo n.º 3
0
        public MainWindow()
        {
            InitializeComponent();

            superheroe = new Superheroe
            {
                // Marcamos predeterminado el RadioButton de Héroe
                Heroe = true
            };
            superheroes = Superheroe.GetSamples();
            ActualizaVista(cambiaPag.actual);
            nuevoSuperheroe.DataContext = superheroe;
        }