public void Add(V5Data item) { LstData.Add(item); LstData[Count].PropertyChanged += DataChangedEvent; Count++; DataChanged(item, new DataChangedEventArgs(ChangeInfo.Add, item.GetType().ToString())); AddChangesAfterSave = true; }
public bool RemoveElement(V5Data select_elem) { bool delete_flg = LstData.Remove(select_elem); if (delete_flg) { --Count; AddChangesAfterSave = true; } return(delete_flg); }