Example #1
0
        public void update()
        {
            tmpUsers.Clear();
            tmpAnnouncements.Clear();
            tmpTmpAnnouncements.Clear();

            foreach (User user in userRepository.getAll())
            {
                if (user.id != CurrentUser.User.id)
                {
                    tmpUsers.Add(user);
                }
            }

            foreach (Announcement announcement in announcementRepository.getAll())
            {
                tmpAnnouncements.Add(announcement);
            }
            foreach (TmpAnnouncement announcement in tmpAnnouncementRepository.getAll())
            {
                tmpTmpAnnouncements.Add(announcement);
            }
        }