void HandleAsyncCallback(IAsyncResult ar)
        {
            Device.BeginInvokeOnMainThread(() =>
            {
                Stream stream = request.EndGetResponse(ar).GetResponseStream();
                DataContractJsonSerializer serializer =
                    new DataContractJsonSerializer(typeof(XKCD));

                dailyImage      = (XKCD)serializer.ReadObject(stream);
                imgDaily.Source = dailyImage.img;
                lblTitle.Text   = dailyImage.title;

                lblLoading.Text = "";
            });
        }
Example #2
0
 public void Save(XKCD dailyXKCD)
 {
     DB.Conn.Insert(dailyXKCD);
 }