Пример #1
0
        public KataT()
        {
            InitializeComponent();
            Deportista Dep1 = new Deportista(18, 23, "Federer", "Tenis");
            Deportista Dep2 = new Deportista(4, 32, "Joaquin", "Fútbol");
            Deportista Dep3 = new Deportista(28, 31, "Messi", "Fútbol");

            Lista.Add(Dep1);
            Lista.Add(Dep2);
            Lista.Add(Dep3);
            listaDeportistas.ItemsSource = Lista;
        }
        public KataT()
        {
            InitializeComponent();
            Deportista dpt1 = new Deportista(28, "Juan", "tenis", 28);
            Deportista dpt2 = new Deportista(52, "Martin", "baloncesto", 20);
            Deportista dpt3 = new Deportista(30, "Pau", "futbol", 34);

            lista.Add(dpt1.ToString());
            lista.Add(dpt2.ToString());
            lista.Add(dpt3.ToString());
            listaPrincipal.ItemsSource = lista.Where(x => x.edad > 18 && x.deporte.Contains("t") && x.puntuacion > 10);
        }
Пример #3
0
        public KataT()
        {
            InitializeComponent();

            var d1 = new Deportista(123, 19, "mujer", "Voleyball");
            var d2 = new Deportista(30, 18, "Hombre", "Padel");

            deporList.Add(d1);
            deporList.Add(d2);

            listview.ItemsSource = deporList.Where(x => x.Edad > 23 && x.Deporte.Contains("T") && x.Puntuacion == 30);
        }
Пример #4
0
 public KataT()
 {
     InitializeComponent();
     BindingContext = new Deportista();
 }