///////////////////////////////////////////////////////////////////////////////// // MyNeoReport Designer // -------------------- // Project Copyright (C) : Fabio Zanetta, email: support@neodatatype.net // Portions Copyright (C) : Microsoft Corporation. All Rights Reserved. // License : docs/license.txt // ------------------------------------------------------------------------------ // File created by : Fabio Zanetta, email: support@neodatatype.net // ------------------------------------------------------------------------------ // Please, if you modify some parts of this file mark them as described in // docs/modify_guidelines.txt ///////////////////////////////////////////////////////////////////////////////// // If you want to use this class for a generic undo/redo purpose // just remove references to MyNeoReport and replace ObjectBase with object using System; using System.Collections; using System.Reflection; using NeoDataType.MyNeoReport; namespace MyNRDesigner { public struct UndoAction { public ObjectBase Item; public ArrayList UndoValues; public UndoAction(ObjectBase item) { Item = item; UndoValues = new ArrayList(); } public void Add(string propertyName, object value) { int idx = this.UndoValues.Count; UndoValue uv = new UndoValue(); uv.PropertyName = propertyName; uv.Value = value; this.UndoValues.Add(uv); } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)