예제 #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);
 }