Ejemplo n.º 1
0
        void CheckUnReadMessages()
        {
            var hasUnreadMessages = Factories.CreateChat().HasUnreadMessages(CurrentUser.Name);

            if (hasUnreadMessages)
            {
                btnChatPanel.Image = Resources.mail_2_256_green;
            }
            else
            {
                btnChatPanel.Image = Resources.mail_2_256_gray;
            }
        }