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

            if (Globals.CommentCount != "0")
            {
                //btCommentCount.Content = "0";
                //commentPanel.MessageCount = "0";

                if (CommentFrame.CurrentSource == null)
                {
                    CommentFrame.Navigate(new Uri(String.Format("/UserComment"), UriKind.Relative));
                }
                else
                {
                    CommentFrame.Refresh();
                }
            }
        }