private void RemoveEducationFromResume() { try { if (SelectedInEducation == null) { return; } OutEducations.Add(SelectedInEducation); InEducations.Remove(SelectedInEducation); } catch (Exception e) { ls.Log(e, "Exception"); } }
public void RefreshEducationList() { var oldInList = new List <IEducationEntity>(InEducations); var oldOutList = new List <IEducationEntity>(OutEducations); var newList = edRepos.GetAll(); OutEducations.Clear(); InEducations.Clear(); foreach (var item in newList) { if (oldInList.Any(T => T.ID == item.ID)) { InEducations.Add(item); } else { OutEducations.Add(item); } } }