Пример #1
0
 void UpdateData()
 {
     DataSource = new JsonDataSource()
     {
         Source = JsonSource.FromUri(new Uri("https://s3.amazonaws.com/utdmakerspace/events.json"))
     };
 }
Пример #2
0
 public GenericListDataPage(string dataSource)
 {
     DataSource = new JsonDataSource()
     {
         Source = JsonSource.FromUri(new Uri(dataSource))
     };
     InitializeComponent();
 }
Пример #3
0
        public MakerspacePage()
        {
            NavigationPage.SetHasBackButton(this, false);

            MessagingCenter.Subscribe <App>(this, "resume", (sender) =>
            {
                Debug.WriteLine("Refreshing");
                UpdateData();
            });


            DataSource = new JsonDataSource()
            {
                Source = JsonSource.FromUri(new Uri("https://s3.amazonaws.com/utdmakerspace/events.json"))
            };


            InitializeComponent();


            //fire if anyone taps or does anything
            PropertyChanged += Property_Changed;
        }