private void AddPublicationToResume() { try { if (SelectedOutPublication == null) { return; } InPublications.Add(SelectedOutPublication); OutPublications.Remove(SelectedOutPublication); } catch (Exception e) { ls.Log(e, "Exception"); } }
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); } } }