Ejemplo n.º 1
0
        private void listDoa_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            goback();
            ModelDoa data = (sender as GridView).SelectedItem as ModelDoa;

            Navigation.idDoa = data.idDoa;
            Frame.Navigate(typeof(ViewDataDoa));
        }
Ejemplo n.º 2
0
        private void DownloadListDoa(String respondResult)
        {
            JObject jresult = JObject.Parse(respondResult);
            JArray  jdata   = JArray.Parse(jresult.SelectToken("result").ToString());

            foreach (JObject item in jdata)
            {
                ModelDoa mdoa = new ModelDoa();
                mdoa.idDoa        = item.SelectToken("idDoa").ToString();
                mdoa.judulDoa     = item.SelectToken("judulDoa").ToString();
                mdoa.tumbnail     = Navigation.BASE_URL + "/" + item.SelectToken("tumbnail").ToString();
                mdoa.keterangan   = item.SelectToken("keterangan").ToString();
                mdoa.doaArab      = item.SelectToken("doaArab").ToString();
                mdoa.namaKategori = item.SelectToken("kategori").ToString();
                collectiondoa.Add(mdoa);
            }
        }