private void ButtonAuthor_Click(object sender, RoutedEventArgs e)
        {
            QuoteFmItem item = this.DataContext as QuoteFmItem;

            if (item != null)
            {
                UserInterface.ShowUser showUser = new ShowUser();
                showUser.setPerson(item.Author);
                showUser.Show();
            }
        }
        private void ButtonUsernameAuthorRetweet_Click(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;

            if (button != null)
            {
                TwitterItem item = button.CommandParameter as TwitterItem;
                if (item != null)
                {
                    ShowUser userInfo = new ShowUser();
                    userInfo.setPerson(item.RetweetedItem.Author, item.RetweetedItem.RetrievingAccount);
                    userInfo.Show();
                }
            }
        }
        private void ButtonUsername_Click(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;

            if (button != null)
            {
                Person person = button.CommandParameter as Person;
                if (person != null)
                {
                    ShowUser userInfo = new ShowUser();
                    userInfo.setPerson(person, InitiatingAccount);
                    userInfo.Show();
                }
            }
        }
Beispiel #4
0
        private void ButtonUsername_Click(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;

            if (button != null)
            {
                QuoteFmUser person = button.CommandParameter as QuoteFmUser;
                if (person != null)
                {
                    if (person.FollowerCount == 0 && person.FollowingCount == 0)
                    {
                        QuoteSharp.User user = QuoteSharp.API.getUser(person.Id);
                        if (user != null)
                        {
                            person = QuoteFmUser.createFromApi(user);
                        }
                    }
                    ShowUser userInfo = new ShowUser();
                    userInfo.setPerson(person);
                    userInfo.Show();
                }
            }
        }