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; } }
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; } }