// Method will refresh the UI notification information and display private void RefreshNotifications() { // Clear notification detail display box rbox_ClerkNotifications.Clear(); // Get list of user's notifications notifications = ApplicationObjects.CheckAllNotifications(userAccount); // Variable to be used for notificaion heaqding (new or read) string isRead = null; foreach (Notification notification in notifications) { // If notification is new (unread) if (notification.IsRead == false) { // String to insert into notification if notification is new isRead = "New "; } // Populate combobox drop-down with notifications cbx_Notifications.Items.Add(isRead + "Notification: " + notification.NotificationType.ToString()); } // Display total number of notifications lbl_Notifications.Text = (notifications.Count.ToString() + " total notifications found"); }