Generics Not working.

Aug 12, 2009 at 7:38 AM

Hello,

I have a private readonly field of a custom type...

readonly UndoRedo<List<BaseStep>> fList = new UndoRedo<List<BaseStep>>(new List<BaseStep>());

protected

The BaseStep class full implements the UndoRedo functionality of DeJaVu and it works fantastically, however adding items to the the above defined list does not cause an item to be added to the UndoRedo Stack, please see the code below for an example of what i am doing.

 

public virtual void AddStep(BaseStep Step)
        {
            using (UndoRedoManager.Start("Add new Step"))
            {
                List.Add(Step);
            	UndoRedoManager.Commit();
            }
        }
Can anyone give any help as i would really like to implement DeJaVu in my current application as its brilliant.
thanks.
Scott
Aug 12, 2009 at 11:50 AM

Sorry, i was being ignorant, i didnt bother fully reading the documentational blog first :) i have now found the UndoRedoList.

Thanks for a great peice of code :)