AutoWikiBrowser.MainForm.UpdateUserNotifications C# (CSharp) Method

UpdateUserNotifications() private method

private UpdateUserNotifications ( ) : void
return void
        private void UpdateUserNotifications()
        {
            if (!Variables.NotificationsEnabled)
            {
                lblUserNotifications.Visible = false;
                return;
            }
            if (!lblUserNotifications.Visible)
            {
                lblUserNotifications.Visible = true;
            }

            lblUserNotifications.Text = TheSession.User.Notifications.ToString();

            if (TheSession.User.Notifications > 0)
            {
                lblUserNotifications.BackColor = Color.Tomato;
                lblUserNotifications.Font = new Font(lblUserNotifications.Font, FontStyle.Bold);
            }
            else
            {
                lblUserNotifications.BackColor = Color.Gray;
                lblUserNotifications.Font = new Font(lblUserNotifications.Font, FontStyle.Regular);
            }
        }
MainForm