private void buttonGetBirthdayFact_Click(object sender, EventArgs e)
        {
            string date = birthdayLabel2.Text;

            if (!string.IsNullOrEmpty(date))
            {
                TimeJson timeJson = parseTime(date);
                var      factJson = m_WebController.DownloadWebData <FactJson>(
                    new Uri(k_UrlGetFactByDatePath + timeJson.Month + "/" + timeJson.Day + k_GetFactByDateParams));
                textBoxFact.Clear();
                textBoxFact.AppendText(factJson.text);
                textBoxFact.AppendText(Environment.NewLine);
                textBoxFact.AppendText("Fact Date : "
                                       + timeJson.Month + "/" + timeJson.Day + " Event Year : " + factJson.year);
            }
        }
Beispiel #2
0
        private void buttonGetCat_Click(object sender, EventArgs e)
        {
            CatJson catJson = m_WebController.DownloadWebData <CatJson>(new Uri(k_UrlGetRandomCat));

            pictureBoxCat.LoadAsync(catJson.source);
        }