Example #1
0
        private void AddPublicationToResume()
        {
            try
            {
                if (SelectedOutPublication == null)
                {
                    return;
                }

                InPublications.Add(SelectedOutPublication);
                OutPublications.Remove(SelectedOutPublication);
            }
            catch (Exception e)
            {
                ls.Log(e, "Exception");
            }
        }
Example #2
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);
                }
            }
        }