Пример #1
0
        private void SetupApplication(object sender, InvokedHandlerArgs e)
        {
            Tasks.Clear();
            Tasks.Add(new UserTask { Title = "Mentions" });
            Tasks.Add(new UserTask { Title = "Retweets" });
            Tasks.Add(new UserTask { Title = "New Followers" });
            Tasks.Add(new UserTask { Title = "Lost Followers" });
            // fire tasks in background

        }
Пример #2
0
        private void SetupApplication(object sender, InvokedHandlerArgs e)
        {
            Tweets.Clear();

            Tasks.Clear();
            Tasks.Add(new UserTask { Title = "Timeline", Command = new DelegateCommand(GetTimeline) });
            Tasks.Add(new UserTask { Title = "Mentions", Command = new DelegateCommand(GetMentions) });
            Tasks.Add(new UserTask { Title = "Retweets", Command = new DelegateCommand(GetRetweets) });
            Tasks.Add(new UserTask { Title = "DMs", Command = new DelegateCommand(GetDirectMessages) });
            Tasks.Add(new UserTask { Title = "New Followers" });
            Tasks.Add(new UserTask { Title = "Lost Followers" });

            GetTimeline();
        }
Пример #3
0
 private void AddTweet(object sender, InvokedHandlerArgs e)
 {
     var tweet = e.Context as Tweet;
     Tweets.Add(tweet);
 }
Пример #4
0
 private void AddTweetFirst(object sender, InvokedHandlerArgs e)
 {
     var tweet = e.Context as Tweet;
     Tweets.Insert(0, tweet);
 }