예제 #1
0
        private void everyFiveSeconds_Tick(object sender, EventArgs e)
        {
            if (Globals.CommentCount != "0")
            {
                btCommentCount.Visibility = Visibility.Visible;
                btCommentCount.Content    = Globals.CommentCount;
                if (ConfigurationSettings.UserCommentClose == false)
                {
                    commentPanel.MessageCount = Globals.CommentCount;
                    CommentFrame.Refresh();
                }
            }
            else
            {
                btCommentCount.Visibility = Visibility.Collapsed;
                btCommentCount.Content    = "";
                commentPanel.MessageCount = "";
            }


            if (Globals.MentionCount != "0")
            {
                btMentionCount.Content    = Globals.MentionCount;
                btMentionCount.Visibility = Visibility.Visible;
                if (ConfigurationSettings.UserMentionClose == false)
                {
                    mentionPanel.MessageCount = Globals.MentionCount;
                    MentionFrame.Refresh();
                }
            }
            else
            {
                btMentionCount.Content    = "";
                btMentionCount.Visibility = Visibility.Collapsed;
                mentionPanel.MessageCount = "";
            }

            if (Globals.FollowerCount != "0")
            {
                btFollowerCount.Visibility = Visibility.Visible;
                btFollowerCount.Content    = Globals.FollowerCount;
                if (ConfigurationSettings.UserFollowerClose == false)
                {
                    followerPanel.MessageCount = Globals.FollowerCount;
                    UserFollowerFrame.Refresh();
                }
            }
            else
            {
                btFollowerCount.Visibility = Visibility.Collapsed;
                btFollowerCount.Content    = "";
                followerPanel.MessageCount = "";
            }
        }
예제 #2
0
        private void hbAtme_Click(object sender, RoutedEventArgs e)
        {
            MiniModeWindows();
            AddPanel((int)Globals.Panels.MentionPanel);
            ConfigurationSettings.UserMentionClose = false;

            if (Globals.MentionCount != "0")
            {
                if (MentionFrame.CurrentSource == null)
                {
                    MentionFrame.Navigate(new Uri(String.Format("/UserMention"), UriKind.Relative));
                }
                else
                {
                    MentionFrame.Refresh();
                }
            }
        }