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 }
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(); }
private void AddTweet(object sender, InvokedHandlerArgs e) { var tweet = e.Context as Tweet; Tweets.Add(tweet); }
private void AddTweetFirst(object sender, InvokedHandlerArgs e) { var tweet = e.Context as Tweet; Tweets.Insert(0, tweet); }