Ejemplo n.º 1
0
        private void InitNotificationList()
        {
            string serializedList = Application.Current.Properties["SerializedUserNotif"] as string;

            List <UserNotification> list = null;

            if (serializedList != null)
            {
                list = JsonConvert.DeserializeObject <List <UserNotification> >(serializedList);

                NotificationList = list;
            }
            else
            {
                NotificationList = new List <UserNotification>();
            }
            switch (_modelType)
            {
            case NotificationSettingsViewModelType.MutualHelpFaculty:
                TitleLabel       = "Add faculty you would like to get notify when anyone add Help Request related to it";
                EmptyListLabel   = "You still don't have any Mutual Help related notification to any of your faculties.";
                NotificationList = NotificationList.FindAll(un => un.StudentId == Settings.StudentId && un.Topic.StartsWith("HRF"));
                break;
            }

            if (NotificationList.Count == 0)
            {
                IsNotificationListEmpty = true;
            }
        }