public void SaveCurrentStates() { foreach (DynamicChildNodViewModel state in _pageVM.DynamicChildren) { DynamicChildNodViewModelUndo item = new DynamicChildNodViewModelUndo(state, _pageVM.DynamicChildren.IndexOf(state)); _newList.Add(item); } }
public DynamicPanelStatesChangeCommand(DynamicPageEditorViewModel pageVM) { _pageVM = pageVM; foreach (DynamicChildNodViewModel state in _pageVM.DynamicChildren) { DynamicChildNodViewModelUndo item = new DynamicChildNodViewModelUndo(state, _pageVM.DynamicChildren.IndexOf(state)); _oldList.Add(item); } }