Ejemplo n.º 1
0
 public HirdetoPage(SportEvent sport)
 {
     InitializeComponent();
     this.sport                = sport;
     SportName.Text            = this.sport.Sport;
     ProfilPic.Source          = ImageSource.FromFile("profilpic.png");
     PlaceLabel.Text           = this.sport.Place;
     AvailablePlacesLabel.Text = this.sport.PlacesAvailable;
     //CostsLabel.Text = this.sport.Costs;
     DateLabel.Text  = this.sport.Date;
     ChatPic.Source  = ImageSource.FromFile("chat.png");
     MapsIcon.Source = ImageSource.FromFile("mapsicon.png");
 }
Ejemplo n.º 2
0
        public MainPage(SportEvent sport)
        {
            InitializeComponent();
            ProfilPic.Source = ImageSource.FromFile("profilpic.png");
            //Itt az ember lista ha akarsz itt tudsz hozzaasni meg egy embert (az utolso utan nem kell legyen vesszo)
            Events = new ObservableCollection <SportEvent>()
            {
                //Budapest
                //Pécs
                //Szeged
                //Pomáz
                //Szentendre
                //Óbuda
                new SportEvent {
                    Sport = "Kosárlabda", Picture = "profilpiclist.png", PlacesAvailable = "4/2", Date = "16/6/2019 17:00", Place = "Óbuda"
                },
                new SportEvent {
                    Sport = "Foci", Picture = "profilpiclist.png", PlacesAvailable = "10/6", Date = "1/9/2019 13:30", Place = "Pomáz"
                },
                new SportEvent {
                    Sport = "Fitness", Picture = "profilpiclist.png", PlacesAvailable = "2/2", Date = "23/6/2019 09:00", Place = "Szeged"
                },
                new SportEvent {
                    Sport = "Futás", Picture = "profilpiclist.png", PlacesAvailable = "4/1", Date = "17/7/2019 16:00", Place = "Pécs"
                },
                new SportEvent {
                    Sport = "Úszás", Picture = "profilpiclist.png", PlacesAvailable = "2/2", Date = "3/10/2019 07:00", Place = "Szentendre"
                }
            };
            if (sport != null)
            {
                Events.Add(sport);
            }

            EventList.ItemsSource = Events;
        }