示例#1
0
 public void DirectMessage(ITweetItem tweet)
 {
     StatusText      = string.Empty;
     _outgoing.Tweet = tweet;
     _outgoing.Type  = OutgoingType.DirectMessage;
     Show();
 }
示例#2
0
 public void Quote(ITweetItem tweet)
 {
     StatusText      = string.Format("RT @{0} {1}", tweet.User.ScreenName, tweet.Text);
     _outgoing.Tweet = tweet;
     _outgoing.Type  = OutgoingType.Quote;
     Show();
 }
示例#3
0
 public void Reply(ITweetItem tweet)
 {
     StatusText      = '@' + tweet.User.ScreenName;
     _outgoing.Tweet = tweet;
     _outgoing.Type  = OutgoingType.Reply;
     Show();
 }
示例#4
0
 public void NavigateToConversationTimeline(ITweetItem item)
 {
     if (item is Tweet)
     {
         var tweet = (Tweet)item;
         ActivateTimeline("Conversation", timeline =>
         {
             timeline.CanClose = true;
             timeline.SubscribeToConversation(tweet);
         });
     }
 }
示例#5
0
        private void ShowWindow(ITweetItem tweet)
        {
            if (_window == null)
            {
                _window = new NotificationWindow
                {
                    Width   = 400,
                    Height  = 100,
                    Content = new NotificationControl()
                };
            }

            if (_appInfo.IsNotificationsEnabled)
            {
                _window.Content.DataContext = tweet;
                _window.Close();
                _window.Show(5000);
            }
        }
示例#6
0
 private void ShowWindow(ITweetItem tweet)
 {
     if (_window == null)
     {
         _window = new NotificationWindow
         {
             Width = 400,
             Height = 100,
             Content = new NotificationControl()
         };
     }
   
     if (_appInfo.IsNotificationsEnabled)
     {
         _window.Content.DataContext = tweet;
         _window.Close();
         _window.Show(5000);
     }
 }
示例#7
0
 public void DirectMessage(ITweetItem tweet)
 {
     StatusText = string.Empty;
     _outgoing.Tweet = tweet;
     _outgoing.Type = OutgoingType.DirectMessage;
     Show();
 }
示例#8
0
 public void Quote(ITweetItem tweet)
 {
     StatusText = string.Format("RT @{0} {1}", tweet.User.ScreenName, tweet.Text);
     _outgoing.Tweet = tweet;
     _outgoing.Type = OutgoingType.Quote;
     Show();
 }
示例#9
0
 public void Reply(ITweetItem tweet)
 {
     StatusText = '@' + tweet.User.ScreenName;
     _outgoing.Tweet = tweet;
     _outgoing.Type = OutgoingType.Reply;
     Show();
 }