Beispiel #1
0
        public void GetChuckNorris(object sender, EventArgsSelectedItem e)
        {
            string joke = string.Empty;

            closeSimilarForm <FormChuckNorrisJoke>();
            if (AppSevices.FetchChuckNorrisJoke(out joke))
            {
                User selectedFriend          = (e.Item as AdapterFacebookUser).User;
                FormChuckNorrisJoke jokeForm = new FormChuckNorrisJoke(selectedFriend, joke);
                jokeForm.Show();
            }
            else
            {
                MessageBox.Show(k_FetchDataErrorMsg);
            }
        }
Beispiel #2
0
        public void FindFriendZodiac(object sender, EventArgsSelectedItem e)
        {
            string zodiacResult = string.Empty;

            closeSimilarForm <FormUserZodiac>();
            User selectedFriend = (e.Item as AdapterFacebookUser).User;

            if (AppSevices.FetchZodiacSign(selectedFriend, out zodiacResult))
            {
                FormUserZodiac zodiacForm = new FormUserZodiac(zodiacResult);
                zodiacForm.Show();
            }
            else
            {
                MessageBox.Show(k_FetchDataErrorMsg);
            }
        }