Exemplo n.º 1
0
        public void RefreshPublicationsList()
        {
            var oldInList  = new List <IPublicationEntity>(InPublications);
            var oldOutList = new List <IPublicationEntity>(OutPublications);
            var newList    = pubRepos.GetAll();

            OutPublications.Clear();
            InPublications.Clear();
            foreach (var item in newList)
            {
                if (oldInList.Any(T => T.ID == item.ID))
                {
                    InPublications.Add(item);
                }
                else
                {
                    OutPublications.Add(item);
                }
            }
        }