Exemple #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 = "";
            }
        }
Exemple #2
0
        private void hbFans_Click(object sender, RoutedEventArgs e)
        {
            MiniModeWindows();
            AddPanel((int)Globals.Panels.FollowerPanel);
            ConfigurationSettings.UserFollowerClose = false;

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