Exemplo n.º 1
0
        public StationsPage()
        {
            InitializeComponent();

            var Repository = new Data.Repositories.StationRepository();
            var stations   = Repository.GetStationAsync().Result;

            lstStations.ItemsSource = stations;
        }
Exemplo n.º 2
0
        public StationsDetailPage(string ID = "0")
        {
            InitializeComponent();

            contentPageStationDetail.Title = "Estación No. " + ID;

            if (ID != "0")
            {
                var Repository = new Data.Repositories.StationRepository();
                var station    = Repository.GetEntityByIDAsync(Int32.Parse(ID)).Result;

                lblDescription.Text = "Descripción: " + station.Description;
                lblPhone.Text       = "Teléfono: " + station.Phone;
            }
        }